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

Quote:
I don't mind any other delimiter, but i considered this case. I just think that there's simply not enough space in a button to insert captions which would require punctuation marks.
The punctuation could be the actual content. For instance a messagebox asking "Do you prefer ; or , or . ?"
Could lead to buttons like ";" "," "." as selection. The usecases are probably rare, but why risking loosing them in the first place.


I personally would prefer support for 5 buttons(more are too impractical) and a checkbox(for remember my selection stuff).

So you would have as parameters:
string Text
string Title
string Checkbox_caption("", for no checkbox)
integer Number_buttons(up to 5)
string Buttontext_1
string Buttontext_2
string Buttontext_3
string Buttontext_4
string Buttontext_5

And as retvals:
integer Pressed_button
boolean Checkbox_State

This would be the easiest to have and use and create no ambiguity.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 04-22-2021 at 02:33 PM.
Meo-Ada Mespotine is offline   Reply With Quote