Commandbars Statusbar update |
Post Reply |
Author | |
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Call Width = 0 again after you change Text.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Oleg,
So this is the standard procedure? Change the .Width? Maybe the software engineers could implement autoresize after a pane has been changed.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |