TControl.Parent

From OpenEUO
Jump to: navigation, search
RW Parent : TWinControl

Indicates the parent of the control.

Use the Parent property to get or set the parent of this control. The parent of a control is the control that contains the control. For example, if an application includes three radio buttons in a group box, the group box is the parent of the three radio buttons, and the radio buttons are the child controls of the group box. To serve as a parent, a control must be an instance of a descendant of TWinControl. Changing the parent of a control moves the control onscreen so that it is displayed within the new parent. When the parent control moves, the child moves with the parent.