Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabControl

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabControl
    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).
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post 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)? 
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1210
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post 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?
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.047 seconds.