Print Page | Close Window

Subclassing tabs and groups

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=20086
Printed Date: 27 April 2024 at 5:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Subclassing tabs and groups
Posted By: rdhd
Subject: Subclassing tabs and groups
Date Posted: 25 August 2012 at 11:17am
I really need to subclass the CXTPRibbonTab and CXTPRibbonGroup classes and have the ribbon bar create my tab class and the tab class can create my group class. But I am having to copy a lot of code simply because unlike the ribbon bar, CJ doesn't let me specify the class for a tab and/or group.

And when copying code, all the "protected" members are a big road block that causes me to have to pull in more and more code and classes.

All this because of hard coded calls to the new operator when a tab or groups is created in non virtual methods.

Has anyone else sub classed the tab and/or groups? If so, what approach did you take?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net