Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomDockControl.MakeFloating(Integer,Integer) Method

Makes the control floating.

#Declaration

Delphi
procedure MakeFloating(XPos: Integer; YPos: Integer); overload; virtual;

#Parameters

Name Type
XPos Integer
YPos Integer

#Remarks

Use the MakeFloating method to change the dock control’s state to floating. Note that if the control is within a floating container, it is undocked from the container so that it floats separately.

The MakeFloating method has two overloads. If it is called without parameters, the method acts as if the end-user has double-clicked the control’s caption (or the tab corresponding to the control, if it is within a tab container). The control is made to float with its previous floating size and close to its docking site.

If you need to specify a custom position for the control when floating, use MakeFloating’s second overload. The XPos and YPos parameters specify the position of the top-left corner of the floating window. These parameters represent screen coordinates.

See Also