![]() |
c sharp CXTPRibbonControlSystemPopupBarButton |
Post Reply ![]() |
Author | |
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
anyone know how to do this ?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
What line of code of VB6 sample you can't convert to C# ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
Thank, the sample you supply work fine
Marc
|
|
![]() |
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 |