Ignore:
Timestamp:
Jun 23, 2019, 9:12:54 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved scaling support.
File:
1 edited

Legend:

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

    r178 r179  
    77
    88type
     9
     10  { TButtonBase }
     11
    912  TButtonBase = class(TDpiGraphicControl)
    1013  protected
     
    2427  private
    2528    Active: boolean;
     29    procedure SetGraphic(AValue: TDpiBitmap);
    2630  public
    2731    constructor Create(aOwner: TComponent); override;
    28     property Graphic: TDpiBitmap read FGraphic write FGraphic;
     32    property Graphic: TDpiBitmap read FGraphic write SetGraphic;
    2933    // property DownSound: string read FDownSound write FDownSound;
    3034    // property UpSound: string read FUpSound write FUpSound;
     
    119123end;
    120124
     125procedure TButtonBase.SetGraphic(AValue: TDpiBitmap);
     126begin
     127  if FGraphic = AValue then Exit;
     128  FGraphic := AValue;
     129end;
     130
    121131procedure TButtonBase.SetDown(x: boolean);
    122132begin
Note: See TracChangeset for help on using the changeset viewer.