Changeset 21 for branches/Xvcl


Ignore:
Timestamp:
May 8, 2013, 12:53:50 AM (12 years ago)
Author:
chronos
Message:
  • Added: Custom independent basic generics implementation.
Location:
branches/Xvcl
Files:
1 added
6 edited

Legend:

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

    r20 r21  
    6161    clGreen: Result := Vcl.Graphics.clGreen;
    6262    clRed: Result := Vcl.Graphics.clRed;
     63    clSilver: Result := Vcl.Graphics.clSilver;
     64    clGray: Result := Vcl.Graphics.clGray;
    6365  end;
    6466end;
     
    8587procedure TVideoDeviceVCL.TextOut(Position: TPoint; Text: string);
    8688begin
    87   CanvasVCL.Brush.Color := clNone;
     89  CanvasVCL.Brush.Style := bsClear;
    8890  CanvasVCL.TextOut(Position.X, Position.Y, Text);
    8991end;
  • branches/Xvcl/Xvcl.Controls.pas

    r20 r21  
    44
    55uses
    6   Generics.Collections, Xvcl.Classes, Xvcl.Graphics;
     6  Xvcl.Generics, Xvcl.Classes, Xvcl.Graphics;
    77
    88type
     
    142142function TControl.HandleMessage(Message: TMessage): Boolean;
    143143begin
     144  Result := False;
    144145  if Message is TMessageMouseDown then begin
    145146    if Assigned(FOnMouseDown) then FOnMouseDown(Self);
    146147    Color := clGray;
    147148    Paint;
     149    Result := True;
    148150  end else
    149151  if Message is TMessageMouseUp then begin
     
    152154    Paint;
    153155    if Assigned(FOnClick) then FOnClick(Self);
     156    Result := True;
    154157  end;
    155158end;
  • branches/Xvcl/Xvcl.Forms.pas

    r19 r21  
    44
    55uses
    6   Xvcl.Classes, Xvcl.Controls, Xvcl.Graphics, Generics.Collections;
     6  Xvcl.Classes, Xvcl.Controls, Xvcl.Graphics, Xvcl.Generics;
    77
    88type
  • branches/Xvcl/Xvcl.Kernel.pas

    r20 r21  
    44
    55uses
    6   Generics.Collections, Xvcl.Classes, Xvcl.Forms, Xvcl.Controls, Xvcl.Graphics;
     6  Xvcl.Generics, Xvcl.Classes, Xvcl.Forms, Xvcl.Controls, Xvcl.Graphics;
    77
    88type
  • branches/Xvcl/lddesktop.dpr

    r19 r21  
    1313  Driver.SystemVCL in 'Drivers\Driver.SystemVCL.pas',
    1414  Driver.KeyboardVCL in 'Drivers\Driver.KeyboardVCL.pas',
    15   Driver.MouseVCL in 'Drivers\Driver.MouseVCL.pas';
     15  Driver.MouseVCL in 'Drivers\Driver.MouseVCL.pas',
     16  Xvcl.Generics in 'Xvcl.Generics.pas';
    1617
    1718{$R *.res}
  • branches/Xvcl/lddesktop.dproj

    r19 r21  
    9999        <DCCReference Include="Drivers\Driver.KeyboardVCL.pas"/>
    100100        <DCCReference Include="Drivers\Driver.MouseVCL.pas"/>
     101        <DCCReference Include="Xvcl.Generics.pas"/>
    101102        <BuildConfiguration Include="Release">
    102103            <Key>Cfg_2</Key>
Note: See TracChangeset for help on using the changeset viewer.