Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Enable/Disable a complete Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Enable/Disable a complete Toolbar

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


Joined: 28 June 2019
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Samual Quote  Post ReplyReply Direct Link To This Post Topic: Enable/Disable a complete Toolbar
    Posted: 28 June 2019 at 11:42am
How is it possible to Enable/Disable a complete Toolbar?

I know, I can set all the controls in "MyBar_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)"

like this "Control.Parent.BarID = MyDisbaleBarID"

But how can I set it back?

Important: Some of Buttons are already Disabled some other Enabled. So it isn't a solution to enable/disable all Control-Items. It must take the actually Enable/Disable-State!

For example 

  -  I have 3 Toolbar-Rows with 38 Buttons. Button 12, 16, 19, 31 and 36 is disabled.
  - Now I want to Disable Toolbar-Row No. 2  (with includes Buttons 16,19 and 36)
  - Some times later, I want to Enable the Toolbar-Row No. 2 (but Buttons 16,19 and 36 must still be disabled)

I don't found a way like "Toolbar(2).Enable = True/False"

So what is the solution?
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.156 seconds.