Ignore:
Timestamp:
May 4, 2020, 10:24:23 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Code formatting.
File:
1 edited

Legend:

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

    r165 r184  
    44
    55uses
    6   ButtonBase,
    7   Classes, Graphics, LCLIntf, LCLType;
     6  ButtonBase, Classes, Graphics, LCLIntf, LCLType;
    87
    98type
     
    1211  private
    1312    FCaption: string;
    14     procedure SetCaption(x: string);
    15     procedure SetFont(const x: TFont);
     13    procedure SetCaption(Text: string);
     14    procedure SetFont(const Font: TFont);
    1615  published
    1716    property Visible;
     
    2524
    2625procedure Register;
     26
    2727
    2828implementation
     
    5858end;
    5959
    60 procedure TButtonA.SetCaption(x: string);
     60procedure TButtonA.SetCaption(Text: string);
    6161begin
    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;
    6766end;
    6867
    69 procedure TButtonA.SetFont(const x: TFont);
     68procedure TButtonA.SetFont(const Font: TFont);
    7069begin
    71   Canvas.Font.Assign(x);
     70  Canvas.Font.Assign(Font);
    7271  Canvas.Font.Color := $000000;
    7372end;
Note: See TracChangeset for help on using the changeset viewer.