Thema: Delphi Edit nach Create leeren

Einzelnen Beitrag anzeigen

LoL
(Gast)

n/a Beiträge
 
#9

Re: Edit nach Create leeren

  Alt 23. Feb 2005, 12:32
Delphi-Quellcode:
unit dddEdit;

interface

uses
  Windows, Messages, SysUtils, Classes, Controls, StdCtrls, ComCtrls, Dialogs, Graphics;

type
  TdddEdit = class(TRichEdit)
  {...}
  public
    { Public declarations }
    constructor Create(AOwner: TComponent); override;
  end;

procedure Register;

implementation

procedure Register;
begin
  RegisterComponents('Samples', [TdddEdit]);
end;

constructor TdddEdit.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  Width := 121;
  Height := 21;
  Lines.Clear;
end;
  Mit Zitat antworten Zitat