![]() |
c sharp CXTPRibbonControlSystemPopupBarButton |
Post Reply
|
| Author | |
gaudetm
Senior Member
Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
Quote Reply
Topic: c sharp CXTPRibbonControlSystemPopupBarButtonPosted: 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 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2007 at 6:42pm |
|
anyone know how to do this ?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
gaudetm
Senior Member
Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
gaudetm
Senior Member
Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 December 2007 at 8:38pm |
|
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 |