TdxCustomDockControl.FloatForm Property
Gets the floating form where the dock control resides.
Declaration
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.
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