Try OnChangeBounds event.
There is no event for it in the Object inspector.
Quote from: vfclists on April 27, 2015, 10:37:24 amThere is no event for it in the Object inspector.Of course there is.Click on the form, click on Events Object Inspector's tab and doubleclick in OnChangeBounds event.
What about the click of the titlebar? Is it detected by the form, or is it only the operating system that can detect it?
uses windows;var PrevWndProc: WNDPROC;function WndCallback(HWnd: HWND; Msg: UINT; WParam: WParam; LParam: LParam):LRESULT; stdcall;begin if Msg = WM_NCLBUTTONDOWN then //left down begin end; if Msg = WM_NCLBUTTONUP then //left up begin end; Result := CallWindowProc(PrevWndProc, HWnd, Msg, WParam, LParam);end;procedure TForm1.FormCreate(Sender: TObject);begin PrevWndProc := Windows.WNDPROC(SetWindowLongPtr(Self.Handle, GWL_WNDPROC, PtrInt(@WndCallback)));end;