Print Page | Close Window

Sizing StatusBar Pane to match text lengt

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3583
Printed Date: 06 October 2024 at 2:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sizing StatusBar Pane to match text lengt
Posted By: Shawshank
Subject: Sizing StatusBar Pane to match text lengt
Date Posted: 31 January 2006 at 6:03pm
I have a Status Bar which I have added two Panes to. The first Pane has a .Style = SBPS_STRETCH. The second Pane I have set the .Style = SBPS_STRETCH  as well as not setting it. However, when the second Pane has text added the Pane will not autosize to be large enough to hold the text. Is there a way to get the Pane to autosize to allow for any text string size I assign to the .Text property?



Replies:
Posted By: Oleg
Date Posted: 07 February 2006 at 2:06pm

Hello,

call .Width = 0 after you change text, it will resize it to fit text.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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