[Gambas-user] Problem switching forms on embedded application

Benoit Minisini gambas at ...1...
Tue Jun 3 19:08:38 CEST 2008


On mardi 03 juin 2008, M0E Lnx wrote:
> I have already tried this, and got nowhere.
>
> It's really easy to re-produce..
>
> Create new project
> Add a container object to FMain (vpanel1)
> Add a Button object to Fmaine (Button1)
> Create Form1 and Form2
>
> Fmain_load()
> Form1.Reparent(Fmain.vpanel1)
> Form1.show
> END
>
> Button1_click()
> Form1.hide ' Hide the form that is embedded into the vpanel
> Form2.reparent(Fmain.vpanel1) 'prepare the new form to embed into fmain
> Form2.show
> END
>
> That's where I end up with nothing.. the original form hides, but the
> new one does not show up..
>
>
> Please help
>

I thought you were talking about embedding forms with the Embedder control!

Do you use gb.qt or gb.gtk?

-- 
Benoit Minisini




More information about the User mailing list