(Main) Form won't close - how to tell the user why

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

(Main) Form won't close - how to tell the user why

adamnt42@gmail.com
I have a main form that has a lot of ways that the user can start other processes from, some with wait and some without.
When they attempt to close the main form, the event loop won't terminate. Which is proper. However, I need to be able to tell the user to close the "such and such window". How can I find out which process is blocking the end of the event loop?

regards
b

--
B Bruen <[hidden email] (sort of)>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: (Main) Form won't close - how to tell the user why

gambas-user mailing list
Le 20/06/2017 à 07:44, [hidden email] a écrit :
> I have a main form that has a lot of ways that the user can start
> other processes from, some with wait and some without. When they
> attempt to close the main form, the event loop won't terminate. Which
> is proper. However, I need to be able to tell the user to close the
> "such and such window". How can I find out which process is blocking
> the end of the event loop?
>
> regards b
>

You must keep the handles of your processes and check their status yourself.

Regards,

--
Benoît Minisini

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: (Main) Form won't close - how to tell the user why

Charlie
In reply to this post by adamnt42@gmail.com
adamnt42@gmail.com wrote
When they attempt to close the main form, the event loop won't terminate. Which is proper. However, I need to be able to tell the user to close the "such and such window". How can I find out which process is blocking the end of the event loop?
You could try hiding the Main form and only closing it when the user closes the other forms. Have a look at the attached program.

GUITest.tar

Check out www.gambas.one

Reply | Threaded
Open this post in threaded view
|

Re: (Main) Form won't close - how to tell the user why

adamnt42@gmail.com
On Tue, 20 Jun 2017 06:37:08 -0700 (MST)
Charlie <[hidden email]> wrote:

> [hidden email] wrote
> > When they attempt to close the main form, the event loop won't terminate.
> > Which is proper. However, I need to be able to tell the user to close the
> > "such and such window". How can I find out which process is blocking the
> > end of the event loop?
>
> You could try hiding the Main form and only closing it when the user closes
> the other forms. Have a look at the attached program.
>
> GUITest.tar <http://gambas.8142.n7.nabble.com/file/n59432/GUITest.tar>  
>
>


--
B Bruen <[hidden email] (sort of)>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user