Print Page | Close Window

StatusBar.RibbonDividerIndex property

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=10542
Printed Date: 07 October 2024 at 10:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: StatusBar.RibbonDividerIndex property
Posted By: Metodo_Sviluppo
Subject: StatusBar.RibbonDividerIndex property
Date 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.



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


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



Posted By: Aaron
Date 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....


Posted By: Metodo_Sviluppo
Date Posted: 08 May 2008 at 2:50am
Yeah it works!
Thanks for your help



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