Print Page | Close Window

XTPTabControl and custom colors for tab items

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=8255
Printed Date: 29 May 2024 at 8:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPTabControl and custom colors for tab items
Posted By: Jimor Marlow
Subject: XTPTabControl and custom colors for tab items
Date Posted: 01 October 2007 at 6:13pm
Hi,
Can I set tab item's color for any tabs? Like when OneNote colorset enabled but with my custom color for specified items.



Replies:
Posted By: Oleg
Date Posted: 02 October 2007 at 12:55am
Hi,
 
Enable OneNote colors and catch WM_XTP_GETTABCOLOR message in CChildFrame.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Jimor Marlow
Date Posted: 02 October 2007 at 4:34am
I have no child frame, I'd like to use it in separate modal dialog of SDI application.
WM_XTP_GETTABCOLOR have not sent neither parent dialog nor mainframe.

Any other options available?

PS. Why not used some virtual method in CXTPTabControl like
virtual COLORREF CXTPTabControl::GetTabColor(int iItem) const;

Or, the most simple way, CXTPTabControl::SetItemColor(int iItem, COLORREF rgb);
f.e.?


Posted By: Oleg
Date Posted: 02 October 2007 at 5:37am

Hi,

Call .GetItem(nItem)->SetColor(rgb);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Jimor Marlow
Date Posted: 02 October 2007 at 6:42am
Thanx a lot!



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