Dynamic creation of controls
Posted on 1998-08-25
Using Delphi 3, I wish to create an indeterminate number of controls(components) such as gauges, progress bars, edit boxes and place them on a form at runtime.
The idea is that the user can select the type of control from a list of controls, and place the control on the form where required, set the size etc.
Basically, I wish to create the controls in an array or list and be able to modify the properties and events as required. I know how to do this with single variables of type TGauge etc but cannot seem to get it to work in an array of type TControl.