Disable end-user customization |
Post Reply |
Author | |
jhsoft
Newbie Joined: 15 February 2004 Location: Denmark Status: Offline Points: 6 |
Post Options
Thanks(0)
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 ?
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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. Edited by SuperMario |
|
jhsoft
Newbie Joined: 15 February 2004 Location: Denmark Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks SuportMario - Perfect!
Do you know if there is also some way to remove/disable the right-click on toolbar, "customize..." menu ? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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. |
|
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 |