[Gambas-user] Forms (dialogs) from within a module/class
B Bruen
bbruen at ...2308...
Mon May 12 10:21:59 CEST 2014
On Mon, 12 May 2014 09:15:45 +0200
Rolf-Werner Eilert <eilert-sprachen at ...221...> wrote:
> Just a question which has been there for a long time, but difficult for
> me to describe:
>
> When I have a module or class that needs some dialogs when running, do I
> have to load these forms independently from the main program or is there
> a way to "pack" them into the module or have them as childs of this
> module/class in the treeview?
>
> Hope you got what I mean...
>
> Rolf
>
Regarding the second, "have them as childs ... in the treeview" :
I am presuming that you are talking about the IDE project browser. The only way that a class/module will appear as a child node in the treeview is if it inherits from the higher node . BUT if you want to collect classes etc into groups then just create a "Directory" in the treeview and create or drag them there. The IDE code is structured that way.
Regarding the first, I am not sure what you are after here? I think that if a class/module method requires a dialog form then the entire instanciation and showing of the form is most properly handled within that class/module rather than the main application form.
It would be interesting to see some pseudocode that demonstrates your problem.
hth
Bruce
--
B Bruen <bbruen at ...2308...>
More information about the User
mailing list