Well we have two options for the create component thing. One is to use the construct that…
"Baeseman, Cliff" el d�a Tue, 18 May 1999
18:01:04 -0500, escribi�:
Show quoted text 5 lines
Cliff, in open source proyects centralizing things is a bad idea... Suppose that I want to add a component, why I must modify other code that is running smoothly.
Suppose that I want to develop a commercial component, the user must modify their source code ?
Suppose now that we have thousands of components, every time I create one, the code must flow an overloaded case struct ? If there is a problem in one component, just look at that component, not anything else.
I don't need syncronization with others developers when I'm creating components.
In a ideal situation of Open Source all must be a plug-in, this is what Gimp creators have done (because the authors couldn't mantain all the code) and why Gimp is so wonderfull.
Of course talking about plug-ins in this stage is useless, but, please, let's descentralize.
Two different approaches which is correct. The one we have specified here makes it easier to build compound objects based from many different widgets such as in the TMemo implementation without including units.
with my aproach we can do exactly the same without any problem, suppose that I want to do a OpenDialog that consist in a gtk_window and a gtk_file_selection inside, then you declare two components and map the calls to the corresponding one.
Even the gtk allow this, from what I understand you can even put a gtk_window inside a gtk_button
