[Gambas-user] Closing a Message!
bagonergi at gmail.com
Thu Dec 10 19:59:35 CET 2020
Il giorno gio 10 dic 2020 alle ore 16:08 Benoît Minisini <g4mba5 at gmail.com>
> Le 10/12/2020 à 15:33, Charlie Ogier a écrit :
> > Hi Guys,
> > This looks a little dangerous to me, is this an issue?
> > Charlie
> > 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"
> > End
> > ----[ 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?
> Benoît Minisini
With regards to standard message boxes, I'd leave things as they are,
including the close (X) button.
In Gambas it is very easy to create our new message box...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User