Print Page | Close Window

Commandbars Statusbar update

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=9611
Printed Date: 23 November 2024 at 7:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Commandbars Statusbar update
Posted By: Aaron
Subject: Commandbars Statusbar update
Date Posted: 18 February 2008 at 7:42am
Hi,
 
Updating a statusbar pane with another text, the pane will not be resized to full size.
 
Set Pane = sbStatusBar.AddPane(ID_LOGIN_USER)
        Pane.IconIndex = ID_LOGIN_USER
        Pane.Width = 0 ''autosize
       
When switching to another user, the username must be updated
 
CommandBars.StatusBar.FindPane(ID_LOGIN_USER).Text = txtUserName
 
This will not resize the statusbar pane. Only when property .Width is changed, the pane is resized. Why doesn't the pane resize automatically?
 
Thanks in advance
 
 
 



Replies:
Posted By: Oleg
Date Posted: 18 February 2008 at 9:54am
Hi,
Call Width = 0 again after you change Text.


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


Posted By: Aaron
Date Posted: 18 February 2008 at 5:03pm
Oleg,
 
So this is the standard procedure? Change the .Width? Maybe the software engineers could implement autoresize after a pane has been changed. 



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