[Gambas-user] Load a Form into a Frame?

M0E Lnx m0e.lnx at ...626...
Thu May 22 23:54:53 CEST 2008


I'm currently working an application that works similar to this

try using an embedder and use the reparent method to redirect the form
to the container


FMyForm.Reparent(Parent as container)
FmyForm.show()

See if that helps any

On 5/22/08, timothy <timothy.marshal-nichols at ...247...> wrote:
>
>
>
>  > -----Original Message-----
>  > From: gambas-user-bounces at lists.sourceforge.net
>  > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf
>  > Of Stefan Miefert
>  > Sent: Tuesday, 20 May 2008 11:25 AM
>  > To: gambas-user at lists.sourceforge.net
>  > Subject: [Gambas-user] Load a Form into a Frame?
>  >
>  >
>  > Hello,
>  >
>  > i try the gambas Tip 11 but it soent work  . I want to load a
>  > Form "Fchild" into anothers Form  "Frame" Element but it
>  > dosent work. Have someone   an example for this ?
>  >
>
>  I guess you are using Gambas 1 as you mention Tip 11.
>
>  This does the job:
>
>   DIM f AS Fchild
>   f = NEW Fchild(Frame1)
>
>  However this takes over the entire control and you cannot see the border
>  of Frame1.
>
>  I suggest you place a Panel inside the Frame and make it the size you
>  want and then do:
>
>   DIM f AS Fchild
>   f = NEW Fchild(Panel1)
>
>  Simply because it looks a bit better.
>
>  Thanks
>
>  8-{)} Timothy Marshal-Nichols
>  <mailto: timothy.marshal-nichols at ...247...>
>
>
>
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  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