Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Disable end-user customization
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable end-user customization

 Post Reply Post Reply
Author
Message
jhsoft View Drop Down
Newbie
Newbie


Joined: 15 February 2004
Location: Denmark
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhsoft Quote  Post ReplyReply Direct Link To This Post Topic: Disable end-user customization
    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 ?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.


Edited by SuperMario
Back to Top
jhsoft View Drop Down
Newbie
Newbie


Joined: 15 February 2004
Location: Denmark
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhsoft Quote  Post ReplyReply Direct Link To This Post 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 ?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.152 seconds.