Ignore:
Timestamp:
May 8, 2013, 1:52:33 PM (12 years ago)
Author:
chronos
Message:
  • Added: Support for mouse move handling. Now forms can be moved by dragging title bar.
  • Fixed: Clearing background during painting in screen and forms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Xvcl/Drivers/Driver.MouseVCL.pas

    r20 r23  
    1313    procedure DoMouseUp(Sender: TObject; Button: TMouseButton;
    1414      Shift: TShiftState; X, Y: Integer);
     15    procedure DoMouseMove(Sender: TObject; Shift: TShiftState;
     16      X, Y: Integer);
    1517  public
    1618    Form: Vcl.Forms.TForm;
     
    2527begin
    2628  Kernel.Mouse.HandleDown(TPoint.Create(X, Y));
     29end;
     30
     31procedure TDriverMouseVCL.DoMouseMove(Sender: TObject; Shift: TShiftState; X,
     32  Y: Integer);
     33begin
     34  Kernel.Mouse.HandleMouseMove(TPoint.Create(X, Y));
    2735end;
    2836
     
    4553  TForm1(Form).Image1.OnMouseDown := DoMouseDown;
    4654  TForm1(Form).Image1.OnMouseUp := DoMouseUp;
     55  TForm1(Form).Image1.OnMouseMove := DoMouseMove;
    4756end;
    4857
Note: See TracChangeset for help on using the changeset viewer.