![]() |
Two CXTPTabClientWnd questions |
Post Reply
|
| Author | |
rconn
Groupie
Joined: 16 May 2007 Location: United States Status: Offline Points: 79 |
Post Options
Thanks(0)
Quote Reply
Topic: Two CXTPTabClientWnd questionsPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
rconn
Groupie
Joined: 16 May 2007 Location: United States Status: Offline Points: 79 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
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 |