[Gambas-user] gambas 0.57
Rob
sourceforge-raindog2 at ...94...
Sun May 25 22:08:52 CEST 2003
On Sunday 25 May 2003 11:38, Benoit Minisini wrote:
> FMain is my main form, and it has a wrkMain workspace control inside.
> To add a MDI window, just do:
> MyMDIChild = NEW Form(wrkMain)
OK, so is there any way to do that in apps that instantiate forms from a
separate class, like the gambas gui? I first set form controls to public in
the compile time options (thanks :) ), added a workspace to FMain as
Workspace1, and changed the following in the Project module:
ToolForm = NEW FTool
to
ToolForm = NEW FTool(ProjectForm.Workspace1)
and it errors out on that line with "Unknown symbol 'Workspace1' in class
'FMain'. I tried some intermediate steps like
PUBLIC ws as Object (outside of sub main)
ws = ProjectForm.Workspace1
ToolForm = NEW FTool(ws)
but it errors out on Workspace1 the same way. Finally I tried to copy what
you did with the database manager (make a static public member of FMain
called Workspace and set it to the workspace object in _new) but then when I
tried
ToolForm = NEW FTool(ProjectForm.ws)
I got "FMain.ws is static". Did I get the syntax wrong?
Rob
More information about the User
mailing list