Using 10.4.1
I have an TAdvOfficePager that allows undocking now.
I have the following events to set the onClose event of the floating window.
Problem here is I don't know what to do to pickup during the onClose event of
the floating window to send the tab control inside it BACK to the TAdvOfficePager.
I might be able to scan through the controls on the floating form to find the tab?
but I don't think that would be proper way.
Basically, I just want the undocked tabs floating form, when user closes it, to re-dock it.
procedure TfrmDesigner.TabsGadgetTabUnDock(Sender: TObject; APage: TAdvOfficePage);
begin
APage.GetFloatingWindow.Caption := APage.Caption;
APage.GetFloatingWindow.OnClose := FloatingFormClose;
end;
procedure TfrmDesigner.FloatingFormClose(Sender: TObject; var Action: TCloseAction);
var
fPage: TFloatingPagerWindow;
begin
if Sender is TFloatingPagerWindow then
begin
fPage := (Sender as TFloatingPagerWindow);
end;
end;