[Gambas-user] getting warning when quitting running application
Gianluigi
bagonergi at gmail.com
Wed May 11 22:45:41 CEST 2022
Il giorno mer 11 mag 2022 alle ore 22:15 Benoît Minisini <g4mba5 at gmail.com>
ha scritto:
> Le 11/05/2022 à 21:42, Charles Bukowski a écrit :
> > It works perfectly!! With no warnings in console as well !!
> > (I've used mine)
> > Many thx
> >
>
> When making a GUI problem, you should tell Gambas which window can be
> considered the main window, by setting the Application.MainWindow property.
>
> Then, closing that main window will automatically close all other
> windows, and your program will quit gracefully (unless there are pending
> file watches, timers, sockets...).
>
> See https://gambaswiki.org/wiki/comp/gb.qt4/application/mainwindow
>
> Regards,
>
> --
> Benoît Minisini
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
One system may be to place this code in windows that can close the
application:
Public Sub Form_Close()
Application.MainWindow = Me
End
Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220511/a3add855/attachment.htm>
More information about the User
mailing list