Print Page | Close Window

c sharp CXTPRibbonControlSystemPopupBarButton

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=8875
Printed Date: 17 June 2025 at 1:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: c sharp CXTPRibbonControlSystemPopupBarButton
Posted By: gaudetm
Subject: c sharp CXTPRibbonControlSystemPopupBarButton
Date Posted: 23 November 2007 at 10:46am
How to create specials popup buttons in the systembutton menu like in vb6 sample of ribbon but you don't have it in the c sharp sample and can't find the way to do it in c sharp
 
Thanks
 
Marc



Replies:
Posted By: gaudetm
Date Posted: 27 November 2007 at 6:42pm
anyone know how to do this ?


Posted By: Oleg
Date Posted: 28 November 2007 at 1:09am
Hi,
What line of code of VB6 sample you can't  convert to C# ?


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


Posted By: gaudetm
Date Posted: 01 December 2007 at 1:03pm
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListCaption")
        Control.Caption = "Recent Documents"
        Control.BeginGroup = True
        .AddControl Control
      
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem")
        Control.Caption = "frmMain.frm"
        .AddControl Control
       
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarButton")
        Control.Caption = "Opt&ions"
        Control.Id = ID_FILE_OPTIONS
        .AddControl Control
    
        Set Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarButton")
        Control.Caption = "E&xit Sample"
        Control.Id = ID_APP_EXIT
        .AddControl Control


Posted By: Oleg
Date Posted: 02 December 2007 at 9:54am
Same code works for me:
 
C#:

Control = CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarButton");

Control.Caption = "E&xit Sample";

Control.Id = ID.ID_APP_EXIT;

ControlFile.CommandBar.Controls.AddControl(Control, -1);



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


Posted By: gaudetm
Date Posted: 03 December 2007 at 8:38pm
Thank, the sample you supply work fine
 
Marc



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