[Gambas-user] Message.Question default button changed?
g4mba5 at gmail.com
Wed Jan 12 17:11:05 CET 2022
Le 12/01/2022 à 16:45, Rolf-Werner Eilert a écrit :
>> No, it changed recently and I don't like it at all, but that's how it
>> was decided by the boss :-P
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> Aargh - so I was right.
> Benoit, please change it back, it means I have to rearrange all my
> message boxes. Otherwise I would have to reverse polarity of my fingers :-)
> CANCEL IS NEVER THE DEFAULT - and it hasn't been in any GUI I have ever
> known for 30 years. When used to key operation, every user would expect
> Return to be on "OK", "YES", "Save" or whatever, and Esc on "Cancel",
> "No", "Abort".
> If you want to keep it, why not offer a Boolean which changes the order
> so the programmer can choose?
> The only way to save me here would be making my own message dialog which
> sets the first button to Default and the second one to Cancel.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
In last commit I added a Message.DefaultButton property that is TRUE by
default. It makes the first button the default one.
If you set that property to FALSE, you get the previous behaviour, where
the cancel button is the default one.
More information about the User