Notifications
Clear all

[Closed] Do a thing on pickbutton cancel?

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

make your own custom pick-button. checkbutton + pickobject.
with pickobject you can handle “abort” (“cancel”) event

Ah that makes sense! I figured there must be some way to do it, thanks for pointing it out.

You can also check the .object property for the pickbutton to see if it equals to “undefined” meaning user cancelled the pickbutton operation.