[Gambas-user] 2 forms closing at the same time. Is it a bug?

Fabien Bodard gambas.fr at ...626...
Sat Nov 14 10:15:47 CET 2009


this is a bug and a veature too... Benoit have set the first windows
to be the main one ..; so it manage the whole program..

nevertheless if we start from a module ... it will not do that !

2009/11/14 Dimitris Anogiatis <dosida at ...626...>:
> Hey Toni,
>
> Fmail closes because it was loaded last.
> If you move FMain.Show first ie
>
>  FMain.Show
>  Form1.Show
>  Form1.closein(8)
>
> then FMain remains after Form1 closes
>
> I tried your program in Debian Lenny 5.0.3 in Gambas 2.16
>
> It should work in 2.17 as well but give it a try
>
> I hope this helps
>
> Regards,
> Dimitris
>
> On Fri, Nov 13, 2009 at 6:27 PM, Toni <arosa at ...2015...> wrote:
>
>> Hi,
>> I'm not sure whether this is a bug or it's me doing something wrong...
>>
>> When I want to show two (or more) Forms from a module set as "Startup
>> class" in its main function,  whenever a "ME.close" is called within one of
>> the forms, the other(s) one gets closed too.
>> To me this isn't the expected behavior... Just one of them should get
>> closed (the ME part is what made me expect it).
>>
>> I attach a simple project to illustrate my point, but basically it's as
>> follows:
>>
>> 1st.- Module1 ( as startup class)
>> PUBLIC FUNCTION Main()
>>
>>  Form1.Show
>>  FMain.Show
>>
>> END
>>
>> 2nd.- In Form1 "ME.Close" is executed
>>
>> 3th.- The FMain form gets closed too and the application finishes.
>>
>> Instead I would expect Fmain not being closed and the application left
>> running until Fmain gets closed by its own means.
>>
>> Regards,
>> Toni
>>
>>
>> P.S.: I'm testing it in an Ubuntu 8.10 64bits with Gambas version 2.17
>> (revision 2415)
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list