StatusBar.RibbonDividerIndex property |
Post Reply |
Author | |
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
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.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
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:
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Metodo_Sviluppo
Groupie Joined: 02 September 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
|
Yeah it works!
Thanks for your help
|
|
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 |