[Gambas-user] Can I embed a form into another form?
Rob Kudla
sourceforge-raindog2 at ...94...
Fri Dec 2 23:13:10 CET 2005
On Fri December 2 2005 16:42, Alex Ciric wrote:
> I have different forms and i want to show them in a single
> "main"-form as the user selects them.
> Do you know how to do this?
Sure.
DIM MyEmbeddedForm AS Form
MyEmbeddedForm = NEW SomeOtherFormInYourProject(ME)
' from here on you can just treat it like a control....
MyEmbeddedForm.Move(0,0,me.width,me.height)
' etc....
MyEmbeddedForm.Delete
Give it a try.... I seem to remember there are issues as far as
which form listens for the events generated by the embedded
form, but I can't remember what they are. It's mentioned
somewhere in the wiki, I think if you search for "listener"
you'll find it. I have no idea what'll happen if your embedded
form tries to access its Window object either.
Rob
More information about the User
mailing list