![]() |
Adding Separator |
Post Reply ![]() |
Author | |
dearvivekkumar ![]() Newbie ![]() Joined: 13 June 2012 Location: New Delhi Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 13 June 2013 at 7:55am |
Hi,
While creating "xtpControlSplitButtonPopup" type control in ribbon as in the following code. I have been able to add menu-item into it's popup. But Now I need to have separator in between menuitems. I am not getting how to do this using this code, without using the WM_XTP_INITCOMMANDSPOPUP message approach. Is it possible in CODEJOCK?? Thanks CXTPControlPopup* pControlButton1 = (CXTPControlPopup*)pGroupClipboard->Add(xtpControlButtonPopup, ID_RIBBON_BUTTON1); if(pControlPasteQueue) { pControlButton1->SetCaption("Button1"); pControlButton1->SetFlags(xtpFlagManualUpdate); // menu-item 1 CXTPControlButton* pControlMenuItem1 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM1); pControlMenuItem1->SetCaption("menu-item1"); // menu-item2 CXTPControlButton* pControlMenuItem2 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM2); pControlMenuItem2->SetCaption("menu-item2"); // I need to add separator here // menu-item3 CXTPControlButton* pControlMenuItem3 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM3); pControlComboneRegions->SetCaption("menu-item3"); // menu-item 4 CXTPControlButton* pControlMenuItem4 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM4); pControlMenuItem4->SetCaption("menu-item4"); } |
|
![]() |
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 |