[Gambas-user] Closing a Message!
Bruce Steers
bsteers4 at gmail.com
Thu Dec 10 19:37:13 CET 2020
I'm not sure what system it was i used but it always made the return value
of the right hand button 0 (is that vb?)
That made sense for "if not " conditioning on requesters.
But i'd agree the close button is not particularly needed (of course
there's Escape/close window keys to consider too)
Or as I suggested (apologies for rudeness) just a little more clarity on
the wiki. go for it. many thanks :)
BruceS
On Thu, 10 Dec 2020 at 15:08, Benoît Minisini <g4mba5 at gmail.com> wrote:
> 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?
>
> Regards,
>
> --
> 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/20201210/4dfd0ca9/attachment.htm>
More information about the User
mailing list