(Co-Admin)
Registriert seit: 29. Mai 2002
Ort: Hamburg
11.120 Beiträge
Delphi 11 Alexandria
|
Re: Dringend: Zweite Klausuraufgabe...
2. Mai 2004, 17:57
Moin alcaeus,

Zitat von alcaeus:

Zitat von toms:
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
BluePanel: TBluePanel;
begin
BluePanel := TBluePanel.Create(Self);
BluePanel.Parent := Self;
end;
Nicht eher:
BluePanel.Parent := Form1;

In einer Methode von Form1 ist self = Form1
Tschüss Chris
Die drei Feinde des Programmierers: Sonne, Frischluft und dieses unerträgliche Gebrüll der Vögel.
Der Klügere gibt solange nach bis er der Dumme ist
|