moai.Request() behaves strange

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
mrupp
Posts: 58
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland
Contact:

moai.Request() behaves strange

Post by mrupp »

Hi there

The following script behaves very strange indeed, especially when run on Windows:

Code: Select all

@REQUIRE "RapaGUI", { Link = True }

moai.Request("RapaGUI", "Hello!\n\nThis dialog should show no icon.", "OK", "None")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show an information icon.", "OK")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show an information icon, too", "OK", "Information")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show a question icon.", "Yes|No", "Question")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show a warning icon.", "OK", "Warning")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show an error icon.", "OK", "Error")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show a button labeled 'Ok' and not 'OK'.", "Ok")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show two buttons.", "Ja|Nein", "Question")
moai.Request("RapaGUI", "Hello!\n\nThis dialog should show three buttons.", "One|Two|Three")
On Windows, the first dialogs are alright except the missing question icon. But then it's getting a bit weird: if the buttons are not labeled exactly "OK", "Yes" or "No", the request dialog shows a listbox listing the values.
On OS4, the buttons are correct, but the icons are missing in all cases.

Tested with HW 9.0.

Image

plouf
Posts: 182
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: moai.Request() behaves strange

Post by plouf »

This has been reported way bacj. And afaik it is hollywood "feature" not bug.
Because as explained for anythink than standar requester (more than 2 option) hollywood implements its own requester and it is not use's OS internal API
(If you search old "bugs" to you may found the discution back then)
For windows os specifically OK ,Yes, No are the three os internal options
And as you see os itself translates them in local languange
If no these default keyword exist hollywood implements its own requeter which is a list and not button

Also icons looks like OS future thats why missing in AmigaOS
Christos

plouf
Posts: 182
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: moai.Request() behaves strange

Post by plouf »

ok the question icon is missing . . thats not correct
Christos

User avatar
mrupp
Posts: 58
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland
Contact:

Re: moai.Request() behaves strange

Post by mrupp »

(If you search old "bugs" to you may found the discution back then)
Oh I see, that's probably the one you mean:
viewtopic.php?f=10&t=2225
Thanks for clarifying.
plouf wrote:
Sun Apr 04, 2021 3:56 pm
Also icons looks like OS future thats why missing in AmigaOS
Sorry, I don't understand. What do you mean by that? AmigaOS 4.1 usually has icons in its requesters.

So the bug is only the missing question icon on Windows and the icons in general on AmigaOS 4.1, imho.
And maybe the distinction between "OK" and "Ok", I found that a bit confusing...

plouf
Posts: 182
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: moai.Request() behaves strange

Post by plouf »

Sorry, I don't understand. What do you mean by that? AmigaOS 4.1 usually has icons in its requesters.
Andres may be confirm, but i guess he uses the same "aos3" reqtools "original" one which has not
So the bug is only the missing question icon on Windows and the icons in general on AmigaOS 4.1, imho.
And maybe the distinction between "OK" and "Ok", I found that a bit confusing...
the distinction of OK <>Ok is windows os decition not hollywood , M$ decide that :)
Christos

User avatar
airsoftsoftwair
Posts: 4554
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: moai.Request() behaves strange

Post by airsoftsoftwair »

plouf wrote:
Mon Apr 05, 2021 11:40 pm
the distinction of OK <>Ok is windows os decition not hollywood , M$ decide that :)
The missing question icon is also a feature of newer Windows versions. Apparently, somebody at Microsoft convinced the powers that be that an icon containing a question mark is too confusing for users so they just dropped it starting in Windows Vista. See here: https://docs.microsoft.com/en-us/window ... ss-confirm

So it's not a bug... anything else in this thread that needs my attention? :)

Post Reply