[Gambas-user] gambas 0.57
Benoit Minisini
gambas at ...2...
Sun May 25 23:49:18 CEST 2003
Le Dimanche 25 Mai 2003 22:08, Rob a écrit :
> 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'.
It should work. Did you recompile everything ?
> 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
>
No idea what is wrong ! Send me your project.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list