Catch InputDialog Cancel?
-
Is it possible to tell whether or not a user has chosen
[Cancel]
in agui.InputDialog(text, preset)
if you specify the preset? Best I can tell, it will always return the preset.Here's a post from the old forum on the subject.
It seems like it's a bug that the preset is returned when cancel is pressed.
Perhaps a third (optional) variable could be added
cancel=""
which is what would be returned if the user cancels?
Thanks,Donovan
-
No, still same old behaviour.
I suggest you to implement such a dialog yourself, it's not that much effort and quickly pays off. -
Hi Donovan, unfortunately, there is no change in this regards. The best way is still to check for an empty return value or either creates your own dialog.
I've filled a feature request.
Cheers,
Maxime.