I have found that when dealing with a lot of dynamically created components its just better to create them at design time but keep each set/group of components on separate Panel/TabSheet and then just BringToFront the Panel/TabSHeet components I need. Or use Frames.
Here is link about dynamic components at run time: http://delphi.about.com/od/kbcurt/a/dynamiccreation.htm I nice expert for Delphi can be found with GExperts: http://www.gexperts.org/ They have an expert called "Components to Code" you can generate all the component code for dynamic creation from this, saves a lot of time. A lot. With this feature you can add the component to a form, make adjustments to the component (even events)... then copy all the code for the component (which includes all the creation info, properties,events etc) into you project. Roberto Freitas <[EMAIL PROTECTED]> wrote: Hello, I would like to create (on an existing empty form) some controls at run time, so the appearance of this form would be different each time it's created and showed. These controls would be TTabSheet or TPanel or TEdit or TComboBox and their owners could be the form itself or some other pre-created control. After creating each control, I must define it's properties. My problem is: I don't know how to create the controls. Could someone show me what are the source lines to do it? --------------------------------- Get your email and more, right on the new Yahoo.com [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/i7folB/TM --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

