点中Panel2,拖动Panel1:
procedure TForm1.Panel2MouseDown(Sender: TObject
Button: TMouseButton;
Shift: TShiftState
X, Y: Integer);
begin
ReleaseCapture;
Panel1.perform(WM_SysCommand, $F012, 0);
end;
点中Panel2,拖动Panel2:
procedure TForm1.Panel2MouseDown(Sender: TObject
Button: TMouseButton;
Shift: TShiftState
X, Y: Integer);
begin
ReleaseCapture;
Panel2.perform(WM_SysCommand, $F012, 0);
end;