Page 4 of 4

Re: Need help with "disabling" a button!

Posted: Wed Jan 11, 2017 5:55 pm
by dunbarx
Submitted bug 19087.

We will se what their opinion is of all this.

Craig

Re: Need help with "disabling" a button!

Posted: Wed Jan 11, 2017 7:48 pm
by dunbarx
So I hid the button, clicked on the empty space, but did NOT show the button at handler's end. No events. Aha. No coordinates or targets.

And then Mark W. replied:
Hi Craig,

This isn't a bug - but a side effect of using 'wait'.

When wait is called (without messages), all UI events are queued and processed
at the next event handling point - which won't be until after the mouseUp has
finished.

Since the button is visible at the point the event is processed, the click
works.

Basically, if you use 'wait' then you must also use 'flushEvents' afterwards if
you *don't* want any events accumulated during the 'wait'.

Warmest Regards,

Mark.
I see that this was what Jacque said early on. Typical.

Craig