Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - StatusBar.SetPaneText does not work right
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

StatusBar.SetPaneText does not work right

 Post Reply Post Reply
Author
Message
cradke View Drop Down
Groupie
Groupie


Joined: 14 August 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote cradke Quote  Post ReplyReply Direct Link To This Post Topic: StatusBar.SetPaneText does not work right
    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

 
 
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: 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
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.047 seconds.