...make a window borderless while dragging?

Author: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch

Category: Forms

procedure TForm1.PanelTopMouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
const
  
SC_DRAGMOVE = $F012;
begin
  if 
(Button = mbLeft) then
  begin
    
ReleaseCapture;
    (Self as TControl).Perform(WM_SYSCOMMAND, SC_DRAGMOVE, 0);
  end;
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base