Print Page | Close Window

Disable a tab item in CXTPTabCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=19007
Printed Date: 31 May 2024 at 9:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable a tab item in CXTPTabCtrl
Posted By: yoavo
Subject: Disable a tab item in CXTPTabCtrl
Date Posted: 03 October 2011 at 9:09am
Hi,
I need to disable a tab item (draw it disabled) of CXTPTabCtrl. Previously, on version 13.1, I did it by creating a custom theme (derived from CXTPTabBaseTheme) and override DrawTabText method. The connection between the control and the custom theme was made by "SetTheme" method (which recieved a CXTThemeManagerStyle*  , a base class of CXTPTabBaseTheme).
Now, I have upgraded to version 15.1.3, and I can not do what I did before. The SetTheme method (of the tab control) does not have a signiture that recieve a CXTPTabBaseTheme* (or its base class).
 
My question is how can I set a custome theme to the tab control (handle the DrawTabText method) in version 15.1.3 ? (or is there a different way to disable a tab item).
 
thanks,
Yoav.



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