hya,
ich wollte mal fragen ob ich OnCreate Ereignisse oder sonstige so unterbringen kann das ich die Form die variables erstellt wurde nicht global deklariert werden muß.
Als Bsp mal das hier
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17:
| Procedure TForm2.FormatAddBox; var FormatBoxForm:TForm; FLabel:TLabel; FEdit:TEdit; OKButton,CancelButton:TButton; filename:string; DS:formatT; Begin FormatBoxForm:=TForm.create(form2); with formatBoxForm do begin Width := 300; Height:= 100; Left :=Trunc((Screen.Width-Width)/2); Top :=Trunc((Screen.Height-Height)/2); Caption := 'Format hinzufügen'; BorderStyle := bsSingle; end; |
so jetzt will ich als OnCreate ereignis bei der FormatBoxForm auf eine procedure zugreifen. aber wenn ich das will muß ich die Form global deklarieren. Gibt es eine methode wie ich es gleich darein programmieren kann??
Greetz
Master_BB