Print Page | Close Window

Two CXTPTabClientWnd questions

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=9271
Printed Date: 14 November 2025 at 2:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Two CXTPTabClientWnd questions
Posted By: rconn
Subject: Two CXTPTabClientWnd questions
Date 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



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


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



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