Page 1 of 2

moai.Request "Allrighty"

Posted: Wed Aug 21, 2019 5:04 pm
by LarsB
Hello, name is Lars. I am not sure if I should post this in newbiesquestions or here ;)

I am just experimenting with

moai.Request("This is a test", "The bomabardement\n" ..
"starts in 5 Minutes","OK")

OK, The last attribute "OK" is the text for a button to close the dialogue. Now there is possible
to replace that with "Yes|No" And voilat, you got 2 buttons which gives you this two options.
But other words do not work. "Allrighty" for example ;) So there must be a certain sets of words/commands
which are valid. Which are there? And..my Version is German. So with "Yes|No" I get a "Ja" and a "Nein" Button.
How can I change this to english for example?

Thanks for taking care,
Lars

Re: moai.Request "Allrighty"

Posted: Wed Aug 21, 2019 5:41 pm
by SamuraiCrow
Sounds to me like the locale support is kicking in.

Re: moai.Request "Allrighty"

Posted: Wed Aug 21, 2019 10:11 pm
by airsoftsoftwair
What platform are you on?

Re: moai.Request "Allrighty"

Posted: Thu Aug 22, 2019 10:57 am
by LarsB
Windows Vista 64 ..

Re: moai.Request "Allrighty"

Posted: Thu Aug 22, 2019 1:47 pm
by plouf
this is similar to this post/report
viewtopic.php?f=10&t=2225

windows by itself have "Yes|No|Cancel" and translate to local languange
if you you these 3 or one / two of them

If you use anythng else including "YES" (thats all capital) hollywood creates its own requester
thjis is windows only behaviour AFAIK

Re: moai.Request "Allrighty"

Posted: Thu Aug 22, 2019 4:12 pm
by LarsB
Thank you very much. Thats a great help.Would be good if there could be a way around.

Re: moai.Request "Allrighty"

Posted: Thu Aug 22, 2019 9:41 pm
by plouf
now you are aware of the behaviour
What exactly is that, that you would like to change ?

i mean you CAN have unlimited options e.g with 10 option
returnvalue = moai.Request("This is a test", "The bomabardement\n" ..
"starts in 5 Minutes","Option1|Option2|Option3|Option4|Option5|Option6|Option7|Option8|Option9|Option10")

Re: moai.Request "Allrighty"

Posted: Fri Aug 23, 2019 12:39 pm
by LarsB
Sure, but you dont get Buttons So I think I have to create my own dialogue. Like it was mentioned before.

Re: moai.Request "Allrighty"

Posted: Fri Aug 23, 2019 1:43 pm
by Clyde
I am in the same boat as LarsB. Let's hope Andreas could maybe implement a possible workaround like I asked him in my thread, that plouf also mentioned: viewtopic.php?f=10&t=2225

Re: moai.Request "Allrighty"

Posted: Fri Aug 23, 2019 2:07 pm
by LarsB
Its a pleasure to discuss here. Its enlightning.
And ...never say never... ;)