[Gambas-devel] how to create an mdi form?
Fabien
Gambasfr at ...4...
Mon Jun 2 22:54:46 CEST 2003
Le Dimanche 1 Juin 2003 23:34, Rob a écrit :
> On Sunday 01 June 2003 15:56, Fabien wrote:
> > Put a workspace area on your futur mdiform(for the exemple named mdiForm)
> > Dim hForm as frmChild
> > hForm = New frmChild(WorkSpace)
>
> Oops, yeah, in my instructions I was confusing the MDI workspace control
> with the splitter, into which you can just cut and paste controls. (On the
> other hand, I don't seem to need to do any resize event stuff for the
> splitter to work...)
>
> Rob
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: eBay
> Get office equipment for less on eBay!
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
lol
i work on gambas since the 0.24 version... so... I speak gambas quite well !
better that english in fact
I've a game for you !
make a form FForm1
Make a second one : FForm2
in the first one :
Dim hForm as FForm2
Public sub _New()
hForm = New FForm2(Me)
end
in the second one :
Dim Men as Menu
Dim subMen as Menu
Public sub _New()
Men = New Menu(Me.Parent) as "mnuTest"
Men.Text = "Test"
Men.Visible = true
subMen = New Menu(Men) as "mnuTest"
subMen.Text = "Hello"
end
Public sub mnuTest_Click()
Message("you have click on Hello menu !")
end
The menu in on the first form but the management is in The embedded one !
It's better than vb no ?
Fabien
In fact i've used this process to put popup menu in a embedded windows. I
stock the menu object in the parent form !
More information about the Devel
mailing list