View Single Post
Old 04-07-2021, 05:27 AM   #357
rstockm
Human being with feelings
 
rstockm's Avatar
 
Join Date: May 2012
Location: Berlin, Germany
Posts: 166
Default API Feature Request: custom modal dialog buttons

As of now, the MB() offers these button-choices for modal dialogs:

0, OK
1, OK CANCEL
2, ABORT RETRY IGNORE
3, YES NO CANCEL
4, YES NO
5, RETRY CANCEL

which is not so bad after all.
Nevertheless, best practice is to have the actual task/verb printed on the button instead of "OK" or "Yes".
Apple addressed this ages ago, this is from 1992 I guess:




To boost up the UX my suggestion would be to offer an "extended" MB() command, where I as the author of a script can define the text on the buttons to my liking. Bonus karma for giving us 3 or even 4 options if we wish.

Before:

"Do you want to save this file?"
[no] [yes]

after:
"Do you want to save this file?"
[cancel] [save as...] [save]
rstockm is offline   Reply With Quote