![]() |
RibbonBar ContextTab not showing |
Post Reply ![]() |
Author | |
cryo75 ![]() Groupie ![]() Joined: 04 June 2006 Status: Offline Points: 49 |
![]() ![]() ![]() ![]() ![]() Posted: 17 September 2006 at 5:22am |
Hi,
I've got a ribbonbar with about 8 visible tabs and a context tab. The context tab is originally false set up like this:
Set oTab = oRib.InsertTab(30000, "&Favorites")
With oTab .ContextCaption = "Favorites" .Color = xtpRibbonTabContextColorBlue .Visible = False End With In the Execute event I have:
Select Case Control.Id
Case 42001: mbShowContextFavorites = Not mbShowContextFavorites End Select And in the Update event I have:
Select Case Control.Id
Case XTPCommandBarsSpecialCommands.XTP_ID_RIBBONCONTROLTAB: Dim oRib As RibbonBar Dim oTab As RibbonTab Set oRib = cbar.ActiveMenuBar Set oTab = oRib.FindTab(30000) If Not oTab Is Nothing Then oTab.Visible = mbShowContextFavorites End If End Select But the context tab is not showing!! Any ideas??
Thanks,
Ivan
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
parameter in InsertTab is Index - not Id,
so add oTab.Id = 30000
and it will work.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cryo75 ![]() Groupie ![]() Joined: 04 June 2006 Status: Offline Points: 49 |
![]() ![]() ![]() ![]() ![]() |
Yep it worked! Is it normal that the tab's background color is white? |
|
![]() |
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 |