Ignore:
Timestamp:
Nov 29, 2023, 6:25:22 PM (6 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ButtonBase.pas

    r447 r464  
    77
    88type
     9
     10  { TButtonBase }
     11
    912  TButtonBase = class(TGraphicControl)
    1013  protected
     
    2528  private
    2629    Active: Boolean;
     30    procedure SetGraphic(AValue: TBitmap);
    2731  public
    2832    constructor Create(aOwner: TComponent); override;
    29     property Graphic: TBitmap read FGraphic write FGraphic;
     33    property Graphic: TBitmap read FGraphic write SetGraphic;
    3034    // property DownSound: string read FDownSound write FDownSound;
    3135    // property UpSound: string read FUpSound write FUpSound;
     
    120124end;
    121125
     126procedure TButtonBase.SetGraphic(AValue: TBitmap);
     127begin
     128  if FGraphic = AValue then Exit;
     129  FGraphic := AValue;
     130end;
     131
    122132procedure TButtonBase.SetDown(X: Boolean);
    123133begin
Note: See TracChangeset for help on using the changeset viewer.