Forum: Object-Pascal / Delphi-Language
Delphi
by teebee,
2. Feb 2004
Du deklarierst DialogSeite als TFrame. TFrame bringt aber von Hause aus keine Methoden LayoutLoad etc. mit. D.h der Compiler weiss an dieser Stelle nicht, welche Methode er aufrufen soll.DialogSeite.LayoutLoad;brächte den Compilerfehler 'Undefinerter Bezeichner'. Entweder deklarierst Du DialogSeite als TLayout, was unpraktisch wäre, weil Du verschiedene Frames brauchst, oder Du castest...
Forum: Object-Pascal / Delphi-Language
Delphi
by teebee,
2. Feb 2004
Warum greifst Du überhaupt mit Klassenmethoden auf das Frame zu?
Du hast doch schon Dein Objekt 'DialogSeite'. Was spricht gegen (DialogSeite As TLayout).BilderGesamt;
(DialogSeite As TLayout).LayoutLoad('gb');
(DialogSeite As TLayout).LayoutLoad('font');
(DialogSeite As TLayout).LayoutLoad('link');
(DialogSeite As TLayout).LayoutLoad('alink');
...