[Gambas-user] Closing a Message!
bsteers4 at gmail.com
Fri Dec 11 03:34:44 CET 2020
what do you think of this Ben?
It adds a Property/Option CancelIsZero to Message class and forces right
hand buttons (and closing window) to always be zero if set to True.
It does not particularly address the issue but does make sense for cancel
to always return zero in some cases.
(I couldn't see how to disable the windows close button but if there is a
way maybe an option to do that would be cool?)
Message.CancelIsZero = True
then you will get...
Message,.Question("Text", "Button 1", "Button 2", "Button 0")
Closing window or pressing escape will also be zero.
On Thu, 10 Dec 2020 at 23:39, Benoît Minisini <g4mba5 at gmail.com> wrote:
> Le 10/12/2020 à 16:26, Tony Morehen a écrit :
> > Please don't. Existing behaviour conforms to standard practice for
> > Linux. I do however suggest updating the documentation for message box
> > to make this behavior explicit, ie, add a note to the effect:
> Yet it makes sense to forbid closing the message window if what the user
> wants is ambiguous. I don't want him to delete his hard drive by error
> just because the behaviour conforms to standard practice. :-)
> Let's see!
> Benoît Minisini
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User