Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - StatusBar.RibbonDividerIndex property
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

StatusBar.RibbonDividerIndex property

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


Joined: 02 September 2004
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Metodo_Sviluppo Quote  Post ReplyReply Direct Link To This Post Topic: StatusBar.RibbonDividerIndex property
    Posted: 07 May 2008 at 8:58am
Hi all,
i'm using VB6 and the new Xtreme Suite version 12.0
 
With this new version of Codejock components i'm trying to update the status bar of my MDI application using the Commandbars.Statusbar object.
All seems to work fine except for the property RibbonDividerIndex. I'd like to see the second color for some rightmost panes of the statusbar, but i noticed that this property only works if i use Commandbars.AddRibbonBar.
In my app i don't need a ribbon bar, but i have the commandbar with his menubar active (and if i use AddRibbonbar, the menubar disappears even if i set Ribbonbar.Visible = False)
Is there a way to enable the second color for the statusbar, without adding a RibbonBar control to the form?
 
Thanks in advance.
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: 07 May 2008 at 9:31am
Hi,
 
Is this what you mean?
 
 
 
You don't have to use anything else just:
 
declare:
Public WithEvents sbStatusBar As XtremeCommandBars.StatusBar
 
and
Set sbStatusBar = CommandBars.StatusBar
      sbStatusBar.RibbonDividerIndex = 2
 
 

 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Metodo_Sviluppo View Drop Down
Groupie
Groupie


Joined: 02 September 2004
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Metodo_Sviluppo Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 10:14am

Yeah it's exaclty what i mean, but it doesn't work if i don't add a RibbonBar to the CommandBar.

I'm using Vista SP1 as OS but i don't think this is the problem.

 
I've tried with the StatusBar sample and this is what i see:
 
 
In the sample, i've just added :
 
StatusBar.RibbonDividerIndex = 1
StatusBar.ToolTipContext.Style = xtpToolTipOffice2007
 
and set Office2007 as CommandBars.VisualTheme
 
If i add this code to the sample:
 
    Dim RibbonBar As RibbonBar
    Set RibbonBar = CommandBars.AddRibbonBar("The Ribbon")
    RibbonBar.Visible = False
 
The StatusBar correctly displays the second color in the right part of the control, but i lose the menubar:
 

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: 07 May 2008 at 11:44am
Hi.
 
When you set a commandbars theme it will also affect the statusbar
 
Set the visual theme of Commandbars to xtpThemeRibbon and you will have the menu and the statusbar Ribbon style
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Metodo_Sviluppo View Drop Down
Groupie
Groupie


Joined: 02 September 2004
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Metodo_Sviluppo Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2008 at 2:50am
Yeah it works!
Thanks for your help
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.