Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by dizzy,
14. Okt 2004
Echt? Ja cool 8)
Gern geschehen :)
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by dizzy,
14. Okt 2004
Evtl. im Konstruktor:
// Deklaration von TMyComponent wie oben
constructor TMyComponent.Create(AOwner: TControl);
begin
inherited Create(AOwner);
FTargetForm := AOwner as TForm;
end;
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by dizzy,
14. Okt 2004
Na ob das unserem Verteidigungsminister gefallen würde... :mrgreen:
Idee: Ein Feld vom Typ "TForm" in deiner Kompo deklarieren, und dann zur Laufzeit eine Referenz des Ziel-Formulares zuweisen. Schon hast du Zugriff.
type
TMyComponent = TControl
FTargetForm: TForm;
end;
.
.