Changeset 23 for branches/Xvcl/Drivers
- Timestamp:
- May 8, 2013, 1:52:33 PM (12 years ago)
- Location:
- branches/Xvcl/Drivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Xvcl/Drivers/Driver.MouseVCL.pas
r20 r23 13 13 procedure DoMouseUp(Sender: TObject; Button: TMouseButton; 14 14 Shift: TShiftState; X, Y: Integer); 15 procedure DoMouseMove(Sender: TObject; Shift: TShiftState; 16 X, Y: Integer); 15 17 public 16 18 Form: Vcl.Forms.TForm; … … 25 27 begin 26 28 Kernel.Mouse.HandleDown(TPoint.Create(X, Y)); 29 end; 30 31 procedure TDriverMouseVCL.DoMouseMove(Sender: TObject; Shift: TShiftState; X, 32 Y: Integer); 33 begin 34 Kernel.Mouse.HandleMouseMove(TPoint.Create(X, Y)); 27 35 end; 28 36 … … 45 53 TForm1(Form).Image1.OnMouseDown := DoMouseDown; 46 54 TForm1(Form).Image1.OnMouseUp := DoMouseUp; 55 TForm1(Form).Image1.OnMouseMove := DoMouseMove; 47 56 end; 48 57 -
branches/Xvcl/Drivers/Driver.VideoVCL.pas
r22 r23 56 56 begin 57 57 case Color of 58 clBlack: Result := Vcl.Graphics.clBlack; 59 clWhite: Result := Vcl.Graphics.clWhite; 60 clBlue: Result := Vcl.Graphics.clBlue; 61 clGreen: Result := Vcl.Graphics.clGreen; 62 clRed: Result := Vcl.Graphics.clRed; 63 clSilver: Result := Vcl.Graphics.clSilver; 64 clGray: Result := Vcl.Graphics.clGray; 65 else Result := Vcl.Graphics.clBlack; 58 clBlack: Result := $000000; 59 clWhite: Result := $ffffff; 60 clBlue: Result := $ff0000; 61 clGreen: Result := $00ff00; 62 clRed: Result := $0000ff; 63 clSilver: Result := $c0c0c0; 64 clGray: Result := $808080; 65 clLightBlue: Result := $ff8080; 66 clLightRed: Result := $80ff80; 67 clLightGreen: Result := $8080ff; 68 clBrown: Result := $a52a2a; 69 clMagenta: Result := $ff00ff; 70 clCyan: Result := $00ffff; 71 clYellow: Result := $ffff00; 72 else Result := $000000; 66 73 end; 67 74 end;
Note:
See TracChangeset
for help on using the changeset viewer.