Page 1 of 1
Message Box Button Order
Posted: Fri Dec 23, 2016 5:47 pm
by Ref
Just curious if other people have observed the following issues with love.window.showMessageBox.
On my system (Windows 7) with Love 0.10.1 and Love.0.10.2, I observe the following:
-- Without a trailing space in message, the last work isn't displayed.
-- Button numbering is consistent with order in the button table but displayed in reversed order.
Re: Message Box Button Order
Posted: Fri Dec 23, 2016 6:42 pm
by davisdude
I only tested with 0.10.1, but for me, the button display order for each is backwards from the way it's listed. For both, the text returned is correct and the button is backwards (i.e. the first button is button 3). In other words, the text returned matches the text of the button, but the button returned is opposite what is should be.
Re: Message Box Button Order
Posted: Fri Dec 23, 2016 8:05 pm
by Ref
Thanks for reply!
Thought maybe by system was somehow screwed up.
Not a big deal if you know how to deal with it.
Just confusing the first time you encountered it.
Re: Message Box Button Order
Posted: Fri Dec 23, 2016 8:07 pm
by slime
Ref wrote:-- Without a trailing space in message, the last work isn't displayed.
Do you use DPI scaling in your Windows global display settings? If so, it's likely a bug in Microsoft's Windows APIs. See here:
https://bugzilla.libsdl.org/show_bug.cgi?id=2425
Re: Message Box Button Order
Posted: Fri Dec 23, 2016 9:40 pm
by Ref
Thanks Slime!
That eliminated the need for a trailing space.
It would be nice if the button display order was the same as that in the button table but that would be too logical.
Best
Re: Message Box Button Order
Posted: Fri Dec 23, 2016 10:02 pm
by slime
I believe SDL places the buttons in "logical order" (in order by the standard for primary/secondary/etc. on the OS) rather than left-to-right. Not positive though.