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.FloatForm Property

Gets the floating form where the dock control resides.

#Declaration

Delphi
property FloatForm: TdxFloatForm read;

#Property Value

Type
TdxFloatForm

#Remarks

Use the FloatForm property to access the settings of the form where the dock control resides. Note that if the dock control is not floating, the property returns nil.

The FloatForm property is useful if you need to change the form’s appearance, caption, etc. For instance, the following sample code changes the style of all float forms so that they look like ordinary forms. The OnCreateFloatSite event is handled for this purpose.

Delphi
procedure TForm1.dxDockingManager1CreateFloatSite(
  Sender: TdxCustomDockControl; AFloatSite: TdxFloatDockSite);
begin
  with Sender.FloatForm do
  begin
   BorderStyle := bsSizeable;
   Icon.LoadFromFile('C:\Images\Icons\FloatFormIcon.ico');
  end;
end;

Note

if you need to set the captions of floating forms according to the dock controls contained within them, handle the OnSetFloatFormCaption event of the docking manager. This event fires each time the layout of dock controls changes within a float site.

See Also