Print Page | Close Window

Status bar changes?

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=13757
Printed Date: 27 September 2024 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Status bar changes?
Posted By: robin_l
Subject: Status bar changes?
Date Posted: 22 March 2009 at 6:57pm
I've belatedly noticed a change in the behaviour of the status bar--not sure when it appeared (12.0 / 12.1??) but it still applies to 13.0.0. The "old" behaviour is that initialising the status bars in the usual way with:

m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))

resulted in the status panes being fixed in width to whatever size you had set for the intial text. The current behaviour is that changing the pane text resizes the pane so that the text fits.
 
Another change is that the "old" status bar, based on CStatusBar (I think), would take any text prefixed by "\t" and center it. The "new" behaviour is to treat this as a tab and offset the subsequent text.
 
If you wish to get the "old" behaviour then for each affected pane you need to do the following:
 

m_wndStatusBar.GetPane(i)->BestFit();

m_wndStatusBar.GetPane(i)->SetTextAlignment(DT_CENTER);

In addition, you need to strip out any "\t" entries in your status bar text.
 


-------------
Product: Xtreme ToolkitPro 2009 (13.4.1)
Platform: Windows 7 Ultimate(64bit)
Language: Visual Studio 2010 (C++)



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