![]() |
CXTPTabControl |
Post Reply
|
| Author | |
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTabControlPosted: 31 May 2007 at 2:24pm |
|
Are there any plans to add drag/drop ability to the CXTPTabControl? We have many users that have requested to ability to move/group tabs by using drag/drop to reorder the tabs.
Also, any plans to allow for being able to define a tabs color (instead of the one-note mind blowing stuff).
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 June 2007 at 7:27am |
|
Hi,
1. Call SetAllowReorder(TRUE) to allow reorder tabs.
2. Call pItem->SetColor(clr) for tabs.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 June 2007 at 1:55pm |
|
On one of the example pages is the statement "Xtreme SuitePro allows you to specify the color of your tabs when OneNote colors are enabled". How is this done? In the source code, it appears that a fixed table of 8 colors is used for OneNote. Can you define alternate OneNote color tables? Or does this mean it is up to the application to just use the pItem->SetColor(clr)?
|
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 June 2007 at 4:21pm |
Hi Kenneth;
Try to catch the WM_XTP_GETTABCOLOR message in your CMDIChildWindow. I have done this in our application on a per document type basis. Each different document type provides its own color. Inside our application defined base MDI child frame class, that catches the WM_XTP_GETTABCOLOR - we call a virtual function that returns the color:
inline COLORREF CFacilityStateFrame::GetTabColorByType() const{return CXTPTabPaintManager::GetOneNoteColor(xtpTabColorMagenta);}Here you can return any COLOREF you like.
I hope this helps... |
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2007 at 12:40pm |
|
The SetAllowReorder(TRUE) to allow reorder tabs works great. Is is possible to disable the ability to reorder specific tabs, yet allow other tabs to be reordered? |
|
![]() |
|
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 |