TdxCustomDockControl.FloatForm Property
In This Article
Gets the floating form where the dock control resides.
#Declaration
Delphi
property FloatForm: TdxFloatForm read;
#Property Value
Type |
---|
Tdx |
#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 On
See Also