<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=Gambas%2Fnesting_forms</id>
	<title>Gambas/nesting forms - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=Gambas%2Fnesting_forms"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/nesting_forms&amp;action=history"/>
	<updated>2026-06-25T07:22:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Gambas/nesting_forms&amp;diff=20918&amp;oldid=prev</id>
		<title>Woozle: this looked too useful not to save immediately</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Gambas/nesting_forms&amp;diff=20918&amp;oldid=prev"/>
		<updated>2015-05-09T18:57:49Z</updated>

		<summary type="html">&lt;p&gt;this looked too useful not to save immediately&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;adapted from &amp;quot;Tip of the day #14&amp;quot;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You can embed any form into other forms.&lt;br /&gt;
&lt;br /&gt;
To do this, just instantiate the form by passing a parent container as the last argument of the constructor:&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;gambas&amp;gt;&lt;br /&gt;
Dim hForm As MyDialog&lt;br /&gt;
Dim hSuperControl As MyForm&lt;br /&gt;
&amp;#039; Create a dialog&lt;br /&gt;
hForm = New MyDialog&lt;br /&gt;
&amp;#039; Insert a form into this dialog&lt;br /&gt;
&amp;#039; Note that this form takes two parameters before the container&lt;br /&gt;
hSuperControl = New MyForm(Param1, Param2, MyDialog)&lt;br /&gt;
&amp;#039; Moves and resizes the form&lt;br /&gt;
hSuperControl.Move(8, 8, 128, 64)&lt;br /&gt;
&amp;lt;/gambas&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be careful:&amp;#039;&amp;#039;&amp;#039; a form embedded in another form is still a form, and so is its own event observer.&lt;br /&gt;
==Notes==&lt;br /&gt;
Question: might this make it possible to do [[continuous forms]]?&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>