Ignore:
Timestamp:
Nov 29, 2023, 2:35:44 PM (6 months ago)
Author:
chronos
Message:
  • Modified: HighDpi branch updated to trunk version.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/ButtonB.pas

    r303 r463  
    1111  private
    1212    FMask: TDpiBitmap;
    13     FIndex: integer;
    14     procedure SetIndex(Text: integer);
     13    FIndex: Integer;
     14    procedure SetIndex(Text: Integer);
    1515  public
    1616    property Mask: TDpiBitmap read FMask write FMask;
    1717  published
    1818    property Visible;
    19     property ButtonIndex: integer read FIndex write SetIndex;
     19    property ButtonIndex: Integer read FIndex write SetIndex;
    2020    property OnClick;
    2121  protected
     
    4747  with Canvas do
    4848    if FGraphic <> nil then begin
    49       DpiBitCanvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas, 169,
     49      DpiBitBltCanvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas, 169,
    5050        243 + 26 * Byte(FDown));
    5151      if FIndex >= 0 then begin
    52         DpiBitCanvas(Canvas, 0, 0, 25, 25, FMask.Canvas,
     52        DpiBitBltCanvas(Canvas, 0, 0, 25, 25, FMask.Canvas,
    5353          1 + FIndex mod 12 * 26, 337 + FIndex div 12 * 26, SRCAND);
    54         DpiBitCanvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas,
     54        DpiBitBltCanvas(Canvas, 0, 0, 25, 25, FGraphic.Canvas,
    5555          1 + FIndex mod 12 * 26, 337 + FIndex div 12 * 26, SRCPAINT);
    56       end
     56      end;
    5757    end else begin
    5858      Brush.Color := $0000FF;
     
    6161end;
    6262
    63 procedure TButtonB.SetIndex(Text: integer);
     63procedure TButtonB.SetIndex(Text: Integer);
    6464begin
    6565  if Text <> FIndex then begin
Note: See TracChangeset for help on using the changeset viewer.