Registriert seit: 23. Jun 2011
25 Beiträge
|
AW: per buttonklick neues fenster öffnen
23. Jun 2011, 15:00
Hier der Code:
Delphi-Quellcode:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
procedure TForm1.OnButtonClick( Sender: TObject);
var
Form2: TForm2;
begin
Form2 := TForm2.Create(Self);
try
Form2.ShowModal;
finally
Form2.Free;
end;
end;
end;
end.
Geändert von mkinzler (23. Jun 2011 um 15:04 Uhr)
Grund: Delphi-Tag eingefügt
|
|
Zitat
|