Detecting popup menu cancelation

Jeffrey Massung massung at gmail.com
Sun Feb 28 12:29:44 EST 2010


On Feb 28, 2010, at 11:21 AM, J. Landman Gay wrote:

> Jeffrey Massung wrote:
>> I have a popup button that, when clicked, I change the background
>> color of a field so as to really highlight for the user exactly what
>> their action is going to be taken on.
>> However, currently, I have no way of detecting if the user chooses to
>> do nothing (cancel the popup) and subsequently return the field's
>> background color to its default.
>> Is there some message I can key off of or some other way for me to
>> accomplish this behavior?
> 
> Do you mean by "cancel" that the user slides off the menu without selecting an option? If so, try "mouseRelease".

Yes, that's what I mean by "cancel." And no, mouseRelease doesn't work. Tried it. :-(

Thanks for the reply.

Jeff M.


More information about the use-livecode mailing list