Print Page | Close Window

RibbonBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=18204
Printed Date: 12 September 2025 at 8:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RibbonBar
Posted By: sodind
Subject: RibbonBar
Date Posted: 11 April 2011 at 1:56pm
Hello,
I need help with RibbonBar.
What did I do wrong?

  CXTPCommandBars * pCommandBars = GetCommandBars ();
  CXTPRibbonBar * pRibbonBar = (CXTPRibbonBar *) pCommandBars-> Add (_T ("Top"), xtpBarTop, RUNTIME_CLASS (CXTPRibbonBar));
  CXTPRibbonTab * pTab1 = pRibbonBar-> AddTab (ID_EDIT);
  CXTPRibbonGroup * pGroup1 = pTab1-> Addgroup (_T ("Edit"));
  pGroup1-> Add (xtpControlButton, ID_EDIT_COPY);

  CXTPRibbonTab * pTab2 = pRibbonBar-> AddTab (_T ("ID_INSERT"));
  CXTPRibbonGroup * pGroup2 = pTab2-> Addgroup (_T ("Paste"));
  pGroup2-> Add (xtpControlButtonPopup, ID_INSERT_PASTE);

  CXTPRibbonTab * PMY = pRibbonBar-> AddTab (_T ("My"));
  CXTPRibbonGroup * pMyGroup = PMY-> Addgroup (_T ("MyGroup"));
  pMyGroup-> Add (xtpControlButton, ID_FIND);

  But I can see the group and the control buttons on pTab1 only, on the other tabs there is nothing.

Thanks.



Replies:
Posted By: sodind
Date Posted: 13 April 2011 at 8:45am
Can you help me?



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