Message Box Button Order

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Message Box Button Order

Post 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.
Attachments
messageBox.love
Shows default setting and rearranged order
(649 Bytes) Downloaded 81 times
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Message Box Button Order

Post 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.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Message Box Button Order

Post 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.
User avatar
slime
Solid Snayke
Posts: 3172
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Message Box Button Order

Post 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
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Message Box Button Order

Post by Ref »

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
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
User avatar
slime
Solid Snayke
Posts: 3172
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Message Box Button Order

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests