[Anchordocking] Which event can use to detect that a form has been docked ? lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- guest58172 · 2017-03-11 10:53 Currently I do this in the base form: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TBaseForm.Resize;var  newParent: TWinControl;  site: TAnchorDockHostSite;begin  inherited;  site := DockMaster.GetAnchorSite(self);  if site.isNil then    exit;  newParent := site.Parent;  if fOldParent <> newParent then  begin    // docking changed...  end;end; While it works, this looks a bit like a workaround: "What does happen when something is docked ? It will certainly be resized so let's override resize()". Can you propose better ?