SetProperty Visible error

ALui

Registered User.
Local time
Today, 02:30
Joined
May 11, 2009
Messages
19
Hi, I'm playing around with some macros on buttons and trying to turn the button invisible OnClick.

btnSearch that has the macro
SetProperty -> btnSearch -> Visible -> 0

I have all macros enabled but I still get the error 2950.

The macro works if I choose any OTHER control to turn off visible. Is there some rule that a button can't turn itself invisible?
 
If it has the focus, I think it can't be made invisible. I know this applies to whether a button can be enabled or not.

If you were using VBA, I'd suggest setting the focus to some other control, then making your original button invisible, but I don't use macros so I can't help you out, I'm afraid.
 

Users who are viewing this thread

Back
Top Bottom