Changeset 179 for branches/highdpi/Packages/CevoComponents/ButtonBase.pas
- Timestamp:
- Jun 23, 2019, 9:12:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/ButtonBase.pas
r178 r179 7 7 8 8 type 9 10 { TButtonBase } 11 9 12 TButtonBase = class(TDpiGraphicControl) 10 13 protected … … 24 27 private 25 28 Active: boolean; 29 procedure SetGraphic(AValue: TDpiBitmap); 26 30 public 27 31 constructor Create(aOwner: TComponent); override; 28 property Graphic: TDpiBitmap read FGraphic write FGraphic;32 property Graphic: TDpiBitmap read FGraphic write SetGraphic; 29 33 // property DownSound: string read FDownSound write FDownSound; 30 34 // property UpSound: string read FUpSound write FUpSound; … … 119 123 end; 120 124 125 procedure TButtonBase.SetGraphic(AValue: TDpiBitmap); 126 begin 127 if FGraphic = AValue then Exit; 128 FGraphic := AValue; 129 end; 130 121 131 procedure TButtonBase.SetDown(x: boolean); 122 132 begin
Note:
See TracChangeset
for help on using the changeset viewer.