Print Page | Close Window

How to hide "Add or Remove Buttons"

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8244
Printed Date: 03 March 2025 at 4:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to hide "Add or Remove Buttons"
Posted By: brianh
Subject: How to hide "Add or Remove Buttons"
Date Posted: 01 October 2007 at 7:01am
Hi, I have a toolbar in a resizable dialog, I want to keep the toolbar on one line so I set the xtpFlagHideWrap flag, but I do want to be able to access any toolbar buttons that can't fit on the screen so I call ShowExpandButton( TRUE ).  This all works as expected.
 
But I also don't want to allow customization so I call EnableCustomization( FALSE ), but when the expand button is clicked it still shows the "Add or Remove Buttons" submenu (see image)! Is there any way to stop this from appearing?
 
Thanks.



Replies:
Posted By: Oleg
Date Posted: 01 October 2007 at 8:43am
Hi,
 
Its pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways option.


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


Posted By: brianh
Date Posted: 01 October 2007 at 9:40am
Brilliant, just what I needed! :)
Thanks Oleg.



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