Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Ribbonbar System Button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbonbar System Button

 Post Reply Post Reply
Author
Message
Vulture View Drop Down
Newbie
Newbie
Avatar

Joined: 10 April 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vulture Quote  Post ReplyReply Direct Link To This Post Topic: Ribbonbar System Button
    Posted: 24 April 2008 at 12:42pm
Hope someone has a solution for this because I am going mad :)

I have added a System Button and a CXTPRibbonControlSystemPopupBarListCaption to my ribbon bar like this:


Dim rbarGeneral As XtremeCommandBars.RibbonBar
Dim rbarPopup As XtremeCommandBars.CommandBarPopup

Set rbarGeneral = cbarGeneral.AddRibbonBar("Standard")

With rbarGeneral
        .EnableDocking xtpFlagStretched
        .EnableFrameTheme
End With

Set rbarPopup = rbarGeneral.AddSystemButton()
        rbarPopup.Id = ID_OTHER_SYSTEMBUTTON
        rbarPopup.Caption = "&Filer"

With rbarPopup.CommandBar
       Set rbarControl = cbarGeneral.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListCaption")
            rbarControl.Caption = "Seneste regnskaber"
            rbarControl.BeginGroup = True
            .Controls.AddControl rbarControl
End With


This works perfectly .. But I then want to create a MRU in this SystemPopupBarList .. The only problem is that I do not know how to reference that group in code at a later time (it is easy to add the MRU entries if I do it right after creating the SystemPopupBarList .. However I would like to do the same whenever a file is opened or saved as well.

So how do I reference that menu in code each time a file is loaded or saved so that I can add a new entry to it?
Back to Top
Vulture View Drop Down
Newbie
Newbie
Avatar

Joined: 10 April 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vulture Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2008 at 1:02pm
Never mind .. figured it out ... finally 

Solution was simple:

Set rbarPopup = cbarGeneral.FindControl("CXTPRibbonControlSystemPopupBarListCaption", ID_OTHER_SYSTEMBUTTON)

Why is it that you always figure things out AFTER you have given up???
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.110 seconds.