Changeset 184 for trunk/Packages/CevoComponents/ButtonA.pas
- Timestamp:
- May 4, 2020, 10:24:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ButtonA.pas
r165 r184 4 4 5 5 uses 6 ButtonBase, 7 Classes, Graphics, LCLIntf, LCLType; 6 ButtonBase, Classes, Graphics, LCLIntf, LCLType; 8 7 9 8 type … … 12 11 private 13 12 FCaption: string; 14 procedure SetCaption( x: string);15 procedure SetFont(const x: TFont);13 procedure SetCaption(Text: string); 14 procedure SetFont(const Font: TFont); 16 15 published 17 16 property Visible; … … 25 24 26 25 procedure Register; 26 27 27 28 28 implementation … … 58 58 end; 59 59 60 procedure TButtonA.SetCaption( x: string);60 procedure TButtonA.SetCaption(Text: string); 61 61 begin 62 if x <> FCaption then 63 begin 64 FCaption := x; 65 Invalidate 66 end 62 if Text <> FCaption then begin 63 FCaption := Text; 64 Invalidate; 65 end; 67 66 end; 68 67 69 procedure TButtonA.SetFont(const x: TFont);68 procedure TButtonA.SetFont(const Font: TFont); 70 69 begin 71 Canvas.Font.Assign( x);70 Canvas.Font.Assign(Font); 72 71 Canvas.Font.Color := $000000; 73 72 end;
Note:
See TracChangeset
for help on using the changeset viewer.