Print Page | Close Window

Hide the "Customize..." item

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=12461
Printed Date: 23 June 2025 at 10:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hide the "Customize..." item
Posted By: FrankC
Subject: Hide the "Customize..." item
Date Posted: 16 October 2008 at 5:14pm

There are menu items inside the toolbar customize popup menu, “Standard” and “Customize…”.  How can I remove the “Customize…” item while keeping the “Standard” item?

 

Thanks,

Frank



Replies:
Posted By: Oleg
Date Posted: 17 October 2008 at 2:30am

Just don't catch XTP_ID_CUSTOMIZE message.



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


Posted By: FrankC
Date Posted: 17 October 2008 at 9:41am
I tried not catching XTP_ID_CUSTOMIZE, while this caused both the Standard and Customize... items disenabled.  While what is required is to  keep the Standard enabled while remove the Customize item.
 
Thanks,
Frank


Posted By: Oleg
Date Posted: 20 October 2008 at 6:43am
Hi,
 
Its not easy :(
See GetAddOrRemovePopup method. You can create class derived from CXTPCommandBars and override this method.


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


Posted By: FrankC
Date Posted: 20 October 2008 at 10:09am
Thanks Oleg.
 
I got following idea from you other postings, and it works.
 
void CMainFrame::OnUpdateCustomize(CCmdUI* pCmdUI)
{
      CXTPPopupBar* pPopupBar = (CXTPPopupBar*)pCmdUI->m_pOther;
      if(pPopupBar)
     {
          CXTPControl* pControl = pPopupBar->GetControl(1);
          if(pControl)
          pControl->SetVisible(FALSE);
          return;
     }
}
 


Posted By: Oleg
Date Posted: 21 October 2008 at 2:11am
Right :) Forgot about this method :)

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



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