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: Apr 2020
Location: Leipzig
Posts: 2,528
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, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1400 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is online now   Reply With Quote