Fonts & Colors

Delphi code posted by Tea
created at 29 Aug 06:53

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
type
  TColor = class
  private
    _Green: Integer;
    _Red: Integer;
    _Blue: Integer;
    procedure SetBlue(const Value: Integer);
    procedure SetGreen(const Value: Integer);
    procedure SetRed(const Value: Integer);
  public
    property Red: Integer read _Red write SetRed;
    property Green: Integer read _Green write SetGreen;
    property Blue: Integer read _Blue write SetBlue;
    constructor Create(r, g, b: Integer); overload;
    constructor Create(hexValue: String); overload;
  end;

type
  TFont = class
  private
    _Name: String;
    _Size: Integer;
    _Style: String;
    procedure SetName(const Value: String);
    procedure SetSize(const Value: Integer);
    procedure SetStyle(const Value: String);
  public
    property Name: String read _Name write SetName;
    property Size: Integer read _Size write SetSize;
    property Style: String read _Style write SetStyle;
    constructor Create; overload;
    constructor Create(fontName: String); overload;
  end;
974 Bytes in 5 ms with coderay