Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTPTabControl and custom colors for tab items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPTabControl and custom colors for tab items

 Post Reply Post Reply
Author
Message
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post Topic: XTPTabControl and custom colors for tab items
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post 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.?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2007 at 5:37am

Hi,

Call .GetItem(nItem)->SetColor(rgb);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2007 at 6:42am
Thanx a lot!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.