Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Execute triggered on Disable Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Execute triggered on Disable Control

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


Joined: 13 April 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cgaskill Quote  Post ReplyReply Direct Link To This Post Topic: Execute triggered on Disable Control
    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.
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.188 seconds.