[Gambas-user] Closing a Message!
Bruce Steers
bsteers4 at gmail.com
Fri Dec 11 03:34:44 CET 2020
what do you think of this Ben?
https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero
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?)
Usage:
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...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201211/97f1ea8e/attachment.htm>
More information about the User
mailing list