Print Page | Close Window

Multiple CommandbarControls

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=2513
Printed Date: 07 July 2024 at 6:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiple CommandbarControls
Posted By: jamesblast
Subject: Multiple CommandbarControls
Date Posted: 05 July 2005 at 4:40am

Hello,

I want to allow the softwareuser, to configure their menus as they want.

there are two problems with it.

*the user could add 2 controls of the same ID to a toolbar. Then I cant set this control to enabled=true/false in code, cos the second control is not reachable.

i use this code to do so:

------------

For each bar in CommandBars

set menuitem=bar.findcontrol(,id,,true)

menuitem.enabled=true

next

----------

what could i do about that?

*after adding a control, and end the costumation, all the toolbarControls are enabled. why is that? how can I avoid this?

I got another question. how can I go through all the controls (ActiveMenu, Commandbars (Toolbars), DesignerControls) to enable/disable/show/hide them by ID performantly and short in code?

thank you!




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