Print Page | Close Window

Enable/Disable a complete Toolbar

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


Topic: Enable/Disable a complete Toolbar
Posted By: Samual
Subject: Enable/Disable a complete Toolbar
Date 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?



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