Print Page | Close Window

StatusBar.SetPaneText does not work right

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=7963
Printed Date: 06 November 2025 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: StatusBar.SetPaneText does not work right
Posted By: cradke
Subject: StatusBar.SetPaneText does not work right
Date Posted: 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

 
 



Replies:
Posted By: Oleg
Date 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



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