How do Enable a Win32 control with an attached action and run the OnExecute event remotely when the action is disabled? (in a Delphi application)
It’s easy to enable a control using EnableWindow(Handle, True)
, which can be done from within an application or from an external application if you can determine the handle. This allows you to enable a disabled button and click on it if there is code in the OnClick
event. This doesn’t work if an action is attached to the button and the action is disabled.