Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - RibbonBar ContextTab not showing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RibbonBar ContextTab not showing

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


Joined: 04 June 2006
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote cryo75 Quote  Post ReplyReply Direct Link To This Post Topic: RibbonBar ContextTab not showing
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cryo75 View Drop Down
Groupie
Groupie


Joined: 04 June 2006
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote cryo75 Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2006 at 11:48am

Yep it worked!

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

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.031 seconds.