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

Two CXTPTabClientWnd questions

 Post Reply Post Reply
Author
Message
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Topic: Two CXTPTabClientWnd questions
    Posted: 10 January 2008 at 1:28am
I have two questions about the tab labels:
 
1) The title always seems to be truncated at a max of about 32 characters.  Is there a way to increase this?  (m_nMaxTabWidth doesn't seem to have any effect.)
 
2) The tabs shift slightly when one is selected (because of the increased width of the bold text).  Is there a way to keep that from happening without having to turn off the bold text for the selected tab and normal text for the inactive tabs?
 
Thanks for your help.
 
Rex Conn
JP Software
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: 10 January 2008 at 8:18am
Hi,
 
1. See CXTPTabClientWnd::CWorkspace*  CXTPTabClientWnd::AddWorkspace(int nIndex)
method. You can change "220" to value you need or override this method and call SetItemMetrics.
2. There is no way.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2008 at 10:15am
Thanks Oleg, I modified AddWorkspace & everything's working now.
 
#2 isn't critical, but it is a little disconcerting if the mouse is at the edge of a tab.
 
Rex Conn
JP Software
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.063 seconds.