Do not allow undocking from AdvDockPanel
質問
I'm using components from TMS and I'd like to know how to allow AdvToolBar to dock into AdvDockPanels without allowing it to undock and then appearing like a solo Form.
I'm looking for an option like:
DockMode := [dmCannotFloat];
解決 2
In the event EndMove of TAdvCustomToolBar I add those lines to make it act like the Property AutoDockOnClose and that does just what I want. AllowFloating is set to True.
{$IFDEF CHALAM}
if (Assigned(FLastDock)) then
begin
self.Parent := FLastDock;
if FFloatingWindow <> nil then
begin
FFloatingWindow.Free;
FFloatingWindow := nil;
end;
end;
{$ENDIF}
他のヒント
So far it's not possible. You could set AllowFloating
to false but then you can only move the toolbar in the current DockPanel
所属していません StackOverflow