home *** CD-ROM | disk | FTP | other *** search
- unit MyEdits;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs,
- Messages, Classes, Graphics,
- Controls, Forms, Dialogs,
- StdCtrls;
-
- type
- TBlueGoldEdit12 = class(TEdit)
- public
- constructor Create(AOwner: TComponent); override;
- end;
-
- TBlueGoldEdit24 = class(TBlueGoldEdit12)
- public
- constructor Create(AOwner: TComponent); override;
- end;
-
- TBlueGoldLabel2 = class(TLabel)
- public
- constructor Create(AOwner: TComponent); override;
- end;
-
- TBlueGoldLabe24 = class(TLabel)
- public
- constructor Create(AOwner: TComponent); override;
- end;
-
- TEmptyPanel = class(TPanel)
- public
- constructor Create(AOwner: TComponent); override;
- end;
-
-
- procedure Register;
-
- implementation
-
- constructor TBlueGoldEdit12.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- Color := clBlue;
- Font.Color := clYellow;
- Font.Name := 'New Times Roman';
- Font.Size := 12;
- Font.Style := [fsBold];
- end;
-
- constructor TBlueGoldEdit24.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- Font.Size := 12;
- end;
-
- constructor TBlueGoldLabel12.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- Color := clBlue;
- Font.Color := clYellow;
- Font.Name := 'New Times Roman';
- Font.Size := 12;
- Font.Style := [fsBold];
- end;
-
- constructor TBlueGoldLabel24.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- Font.Size := 24;
- end;
-
- constructor TEmptyPanel.Create(AOwner: TComponent); override;
- begin
- inherited Create(AOwner);
- Caption := '';
- end;
-
- procedure Register;
- begin
- RegisterComponents('Edits', [TBlueGoldEdit12, TBlueGoldEdit24]);
- end;
-
-
- end.
-