Print Page | Close Window

CXTPTabControl

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=7277
Printed Date: 12 November 2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabControl
Posted By: Kenneth
Subject: CXTPTabControl
Date Posted: 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).



Replies:
Posted By: Oleg
Date 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


Posted By: Kenneth
Date 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)? 


Posted By: mgampi
Date Posted: 01 June 2007 at 4:21pm
Originally posted by Kenneth Kenneth wrote:

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)? 
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


Posted By: Kenneth
Date 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?



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