XTPTabControl and custom colors for tab items |
Post Reply |
Author | |
Jimor Marlow
Groupie Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Enable OneNote colors and catch WM_XTP_GETTABCOLOR message in CChildFrame.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Jimor Marlow
Groupie Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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.? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Call .GetItem(nItem)->SetColor(rgb);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Jimor Marlow
Groupie Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Thanx a lot!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |