TdxCustomDockControl.ParentForm Property
Returns the form that owns the dock control.
Declaration
property ParentForm: TCustomForm read;
Property Value
Type |
---|
TCustomForm |
Remarks
When a dock control is created, it is associated with a form. When creating a control at design-time, it is associated with the form in which it has been placed. If creating a control via code, the associated form is specified by the constructor parameter. After this has been done, the dock control becomes the associated form’s property.
The ParentForm property is used to obtain the form to which the dock control belongs. Do not confuse the return value of this property with the float form where the control can reside. To obtain the owning float form, use the FloatForm property.
Note that dock controls having different ParentForm property values cannot be docked to each other.
See Also