[Gambas-user] Closing a Message!
charlie at cogier.com
Thu Dec 10 16:47:13 CET 2020
On 10/12/2020 15:07, 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?
I was using the "No" first as it is in focus.
More information about the User