Skip to main content

TdxCustomDockControl.FloatDockSite Property

Returns the float site where the dock control resides.

Declaration

property FloatDockSite: TdxFloatDockSite read;

Property Value

Type
TdxFloatDockSite

Remarks

Use the FloatDockSite property to get the float site that owns the dock control. Note that if the immediate parent of the dock control is not a float site, the property returns nil. Thus, you can compare the property value to nil to determine whether the control’s immediate parent is a float site. An alternative method is to compare the DockState property value to dsFloating.

When the control is visually floating, its FloatDockSite property can return nil. This occurs, for instance, if a control is joined into a tab container that resides on a float site. To obtain the owner float site in this case, you need to read the TopMostDockControl property value and convert it to the TdxFloatDockSite type.

To access the floating form settings, use the FloatForm property.

See Also