[Gambas-user] How to create MDI Form, and MDI Child?

Bodard Fabien gambasfr at ...11...
Mon Nov 29 20:59:09 CET 2004


Le lundi 29 Novembre 2004 03:38, Teguh Nuryadi a écrit :
> Hi, i have a problem to create MDI Form and MDI child?  Can you help me?
>
> Teguh Nuryadi
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


I can help you...

First : you are not in VB

Second it not exist mdiform in gambas

Mdi is a widget in the qt.ext component named workspace

to create a mdi child

do :
create an empty form for the child(childform)

in another form(Myform) add a workspace..
in this form type


private childstack as Object[]

PUBLIC SUB MyForm_Open()
	Dim hChild as form
	hchild = New childform(WorkSpace1)
	childstack.add(hchild)  'it's to store the child instances
END

now add a button in myform and play

PUBLIC SUB Command1_Click()
	Dim hChild as form
	hchild = New childform(WorkSpace1)
	childstack.add(hchild)  'it's to store the child instances
END


Fabien Bodard





More information about the User mailing list