Op 2010-06-04 08:41, Michael Van Canneyt het geskryf: > > It is up to you. Both approaches are possible. Like I said, in the LCL it is > TWinControl that does the loop over it's child controls. But you could
LCL implements GetChildren in TWinControl, TFrame and TCustomForm. But looking more closely at the code, TWinControl loops over Controls property and TCustomForm loops over Components property. I now understand why Martin implemented MSEgui from the ground up and not basing any code on Borland's ideas. You never need to fight strange implementations, other than your own. :) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal