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

Status bar changes?

 Post Reply Post Reply
Author
Message
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Topic: Status bar changes?
    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++)
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.125 seconds.