Ignore:
Timestamp:
May 6, 2013, 12:16:30 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Improved messages passing to controls.
  • Modified: Now TButton change background color during mouse click.
Location:
branches/Xvcl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Xvcl

    • Property svn:ignore
      •  

        old new  
        22*.local
        33Win32
         4__history
  • branches/Xvcl/Xvcl.Graphics.pas

    r19 r20  
    2525  TVideoDevice = class
    2626    Size: TPoint;
     27    procedure FillRect(Rect: TRectangle; Color: TColor); virtual;
    2728    procedure Line(Pos1, Pos2: TPoint; Color: TColor); virtual;
    2829    procedure SetPixel(Position: TPoint; Color: TColor); virtual;
     
    4950    procedure SetPixel(Position: TPoint; Color: TColor);
    5051    function GetPixel(Position: TPoint): TColor;
     52    procedure FillRect(Rect: TRectangle);
    5153    constructor Create;
    5254    destructor Destroy; override;
     
    9092  FPen.Destroy;
    9193  inherited;
     94end;
     95
     96procedure TCanvas.FillRect(Rect: TRectangle);
     97begin
     98  Rect.TopLeft := AdjustPos(Rect.TopLeft);
     99  if Assigned(VideoDevice) then VideoDevice.FillRect(Rect, Brush.Color);
    92100end;
    93101
     
    152160{ TVideoDevice }
    153161
     162procedure TVideoDevice.FillRect(Rect: TRectangle; Color: TColor);
     163begin
     164
     165end;
     166
    154167function TVideoDevice.GetPixel(Position: TPoint): TColor;
    155168begin
Note: See TracChangeset for help on using the changeset viewer.