Print Page | Close Window

Disable end-user customization

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=446
Printed Date: 04 May 2024 at 8:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable end-user customization
Posted By: jhsoft
Subject: Disable end-user customization
Date Posted: 15 February 2004 at 2:34pm
With commandbars created via the designer, is there a way to remove/disable to arrow-down button that allows the end-user to customize the tool bars ?



Replies:
Posted By: SuperMario
Date Posted: 15 February 2004 at 2:44pm
Yes there is, simply add this line of code after you load the command bar:

    CommandBars.Options.ShowExpandButtonAlways = False

There is also an option in the designer under Command Bars->Settings to change this option.


Posted By: jhsoft
Date Posted: 15 February 2004 at 3:10pm
Thanks SuportMario - Perfect!

Do you know if there is also some way to remove/disable the right-click on toolbar, "customize..." menu ?


Posted By: SuperMario
Date Posted: 15 February 2004 at 7:34pm
OK, yo disable the "customize" setting, in the designer under Command Bars->Settings there is an option that says "Custamizable"  make this false and the option will not be displayed.  I do not think this option can be changed via code when using an .xcb file.  It must be done in the designer.  If the command bar is created via code the "customize" option will not be there anyway.  I believe the code:
    CommandBars.Options.ShowExpandButtonAlways = False
Will take care of both situations if the command bar is creates via code.



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