Print Page | Close Window

Execute triggered on Disable Control

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=10065
Printed Date: 11 November 2024 at 3:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Execute triggered on Disable Control
Posted By: cgaskill
Subject: Execute triggered on Disable Control
Date Posted: 03 April 2008 at 12:13pm
I am using version 9.71.  Both the menu and toolbar display as disabled; however, the user is still able to fire the menu/toolbar by using the keyboard (hitting the KeyBinding or via the Alt key).

I can't find a setting to prevent this nor can we use the following code in the Execute event...

If Not Control.Enabled Then
  Exit Sub
Endif

Thoughts?  Our control enabling logic can be complex for some controls so I would prefer not to have to call them again if the menu/toolbar already know that they shouldn't fire.



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