Notifications
Clear all
[Closed] Do a thing on pickbutton cancel?
Jan 25, 2015 7:37 am
Say I’d like to set something up so that a piece of code executes when a user clicks on the pickbutton, but then right clicks to cancel. Maybe something simple like formatting “Nothing was picked!” to the listener.
Is this even possible?
3 Replies
Jan 25, 2015 7:37 am
make your own custom pick-button. checkbutton + pickobject.
with pickobject you can handle “abort” (“cancel”) event
Jan 25, 2015 7:37 am
Ah that makes sense! I figured there must be some way to do it, thanks for pointing it out.
Jan 25, 2015 7:37 am
You can also check the .object property for the pickbutton to see if it equals to “undefined” meaning user cancelled the pickbutton operation.