[Gambas-user] Closing a Message!
tmorehen at ajm-software.com
Thu Dec 10 16:26:18 CET 2020
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:
Closing the message box window using the window close button will
perform the cancel action: the message box will close and return
the index of the last button.
I know, that wording is awkward and needs work but you get the idea.
On 2020-12-10 10:07 a.m., Benoît Minisini wrote:
> Le 10/12/2020 à 15:33, Charlie Ogier a écrit :
>> Hi Guys,
>> This looks a little dangerous to me, is this an issue?
>> Public Sub Form_Open()
>> ''Run this and close the Message by clicking the "X", NOT Yes or No.
>> If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then
>> Print "Deleting hard drive"
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> The last button is always supposed to be the cancel action, so it is
> returned by default if you close the message box.
> Maybe I should make the window close button inactive for message box,
> to avoid this ambiguity?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User