View Single Post
Old 04-22-2021, 12:26 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

I'll quote a post from the Api-wishlist-thread about that:

https://forum.cockos.com/showpost.ph...&postcount=357

Quote:
Originally Posted by rstockm View Post
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]

And an optional checkbox for stuff like "remember my choice for the future"
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote