Gambas/nesting forms
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Gambas
adapted from "Tip of the day #14"
You can embed any form into other forms.
To do this, just instantiate the form by passing a parent container as the last argument of the constructor:
Example
<gambas> Dim hForm As MyDialog Dim hSuperControl As MyForm ' Create a dialog hForm = New MyDialog ' Insert a form into this dialog ' Note that this form takes two parameters before the container hSuperControl = New MyForm(Param1, Param2, MyDialog) ' Moves and resizes the form hSuperControl.Move(8, 8, 128, 64) </gambas>
Be careful: a form embedded in another form is still a form, and so is its own event observer.
Notes
Question: might this make it possible to do continuous forms?
