Print Page | Close Window

RibbonBar ContextTab not showing

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=5066
Printed Date: 20 June 2025 at 11:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RibbonBar ContextTab not showing
Posted By: cryo75
Subject: RibbonBar ContextTab not showing
Date 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



Replies:
Posted By: Oleg
Date Posted: 18 September 2006 at 4:08am
Hi,
 
parameter in InsertTab is Index - not Id,
so add
oTab.Id = 30000
 
and it will work.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cryo75
Date Posted: 18 September 2006 at 11:48am

Yep it worked!

Is it normal that the tab's background color is white?




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