![]() |
StatusBar.SetPaneText does not work right |
Post Reply
|
| Author | |
cradke
Groupie
Joined: 14 August 2007 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: StatusBar.SetPaneText does not work rightPosted: 10 September 2007 at 6:59pm |
|
The documentation for the StatusBar.SetPaneText states "The index corresponds to the Id used in the AddPane method. ", however
calling the function with different Ids always sets the text to the last pane.
This can be demonstrated using the CommandBars\VB\StatusBar sample app by adding the following code to the MDIForm_Load() method. Run the app and note that both Panes have the same text when they shouldn't.
Set Pane = StatusBar.AddPane(200)
Pane.Width = 0 Pane.Style = SBPS_STRETCH Pane.Text = "Pane 200" Set Pane = StatusBar.AddPane(201) Pane.Width = 0 Pane.Style = SBPS_STRETCH Pane.Text = "Pane 201" Call StatusBar.SetPaneText(200, "Pane 200") Christopher Radke
Applied Wave Research
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 September 2007 at 1:10am |
|
Hello,
Its index, not id. Change line to
StatusBar.SetPaneText(0, "Pane 200")
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |