Print Page | Close Window

(SOLVED) HOWTO: CXTPTabControl Hilite current tab

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=23305
Printed Date: 27 April 2024 at 9:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (SOLVED) HOWTO: CXTPTabControl Hilite current tab
Posted By: mgampi
Subject: (SOLVED) HOWTO: CXTPTabControl Hilite current tab
Date Posted: 03 April 2017 at 12:06pm
Hi;

I have two CXTPTabControl instances within one dialog. I want the focused control to be "more visible"; therefore I want the focused tab control to colorize its currently focused tab only. When the focus changed to the second instance, the first should remove coloring and the second one colorizes its active tab.
Drawing the focus rectangle on the active tab of the focused instance isn't enough due to bad visibility.

Can this be done with the currently available feature set?
How?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: Alex H.
Date Posted: 21 April 2017 at 5:39am
Hi!
You could use your own colorset.
I'm not sure if this will work with CXTPTabControl too.
m_wndMDITabWindow.GetPaintManager()->SetColorSet(new CXTPTabColorSetOffice2013Custom());

class CXTPTabColorSetOffice2013Custom: public CXTPTabColorSetOffice2013 { public: CXTPTabColorSetOffice2013Custom() { } //----------------------------------------------------------------------- virtual COLORREF GetItemColor(CXTPTabManagerItem* pItem) //----------------------------------------------------------------------- { COLORREF clrItem;

if (pItem->IsHighlighted())
{ clrItem = m_clrButtonHighlighted; }
return clrItem; }


Posted By: mgampi
Date Posted: 21 April 2017 at 5:48am
Thanks!

I'll give it a try...


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: mgampi
Date Posted: 26 April 2017 at 8:34am
Thanks, it works!


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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