Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Statusbar Updates/refresh NOT happening
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Statusbar Updates/refresh NOT happening

 Post Reply Post Reply
Author
Message
Ashm01 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2004
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashm01 Quote  Post ReplyReply Direct Link To This Post Topic: Statusbar Updates/refresh NOT happening
    Posted: 05 January 2005 at 10:12pm

Hi,

I  am using the statusbar from the Commandbars and was able to create panes successfully!However, changing the text on those panes is a different story.

I need a few custom panes on my statusbar and want them to be refreshed on demand.

I added the following:

Global Const ID_CUSTOM_PANE2 = 302 in a module

StatusBar.AddPane ID_CUSTOM_PANE2 
StatusBar.SetPaneStyle ID_CUSTOM_PANE2, SBPS_STRETCH
StatusBar.SetPaneText ID_CUSTOM_PANE2, "Name: XYZ"

I tried doing the following and was unsucessful...

frmmain.CommandBars.StatusBar.SetPaneText ID_CUSTOM_PANE2,"Name: To be updated!!!!"

Is there an refresh method for the statusbar??? Are you going to support a better statusbar in the newer versions which supports Icons, custom controls, themes etc.???

Regards,


Ash

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2005 at 7:35am
First parameter of SetPaneText and SetPaneWidth is Index, not Id.
    StatusBar.SetPaneText 2, "Name: XYZ"
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.172 seconds.