Re: [ROOT] TGMainFrame

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Thu Feb 08 2001 - 10:34:55 MET


Hi,

in my opinion it isn't convinient to store pointers to all dialog
control in your class. For a dialog with many many controls it's getting
to be a real mess! And there is not a real need for it.

In the constructor create your controls.
In the Process-Function process the messages and get the pointer from
some list only if you need them.
The controls can be deleted automatically.

I think something like this would give your window-class a better
structure.

Regards,
Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET