Thema: Delphi Klasse/Methoden

Einzelnen Beitrag anzeigen

muster2002

Registriert seit: 27. Sep 2004
7 Beiträge
 
#12

Re: Klasse/Methoden

  Alt 28. Sep 2004, 09:38
Meine Formular Unit




Delphi-Quellcode:
unit UFormular;

interface



uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Grids, ExtCtrls, UVorgaben, UForm2, UForm3;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Panel1: TPanel;
    StringGrid1: TStringGrid;
    Edit1: TEdit;
    Edit2: TEdit;
    Button2: TButton;
    Memo1: TMemo;
    Button3: TButton;
    Button1: TButton;
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen}

 
  public
    { Public-Deklarationen}
   Vorgaben : TVorgaben;
  end;

var
  Form1: TForm1;

implementation





{$R *.DFM}

procedure TForm1.Button2Click(Sender: TObject);
begin
form2.show;

end;

procedure TForm1.Button3Click(Sender: TObject);
begin
close;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Vorgaben := tVorgaben.create;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
form3.show;
end;

end.
  Mit Zitat antworten Zitat