Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Commandbars Statusbar update
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Commandbars Statusbar update

 Post Reply Post Reply
Author
Message
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: Commandbars Statusbar update
    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
 
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2008 at 9:54am
Hi,
Call Width = 0 again after you change Text.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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. 
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.156 seconds.