Metainformationen zur Seite
Unterformulare
Unterformulare sind Properties eines Haupt-Modulformulars (TformConfigForm). Zunächst muss die globale Formularvariable in der Form-Unit gelöscht werden. Die Unterformulare werden im Haupt-Moduleformular so angelegt:
TformConfigForm = class(TformModule) private FformSubForm: TformSubForm; function GetformSubForm: TformSubForm; public property formSubForm: TformSubForm read GetformSubForm; end; function TformConfigForm.GetformSubForm: TformSubForm; begin if not assigned(FformSubForm) then FformSubForm:= TformSubForm.Create(Self); Result := FformSubForm; end;