Einzelnen Beitrag anzeigen

teebee

Registriert seit: 17. Jan 2003
Ort: Köln
460 Beiträge
 
Delphi 6 Professional
 
#5

Re: Problem mit Klassenmethoden

  Alt 2. Feb 2004, 09:00
Warum greifst Du überhaupt mit Klassenmethoden auf das Frame zu?
Zitat von billi:
Delphi-Quellcode:
     begin
        DialogSeite := TLayout.Create(nil);
        with DialogSeite do begin
         parent := Fmain;
         Left := 145;
         Top := 0;
         TabOrder := 1;
        end;
// ab hier finde ich es sehr 'seltsam':
        TLayout(self).BilderGesamt;
{        TLayout.LayoutLoad('gb');
        TLayout.LayoutLoad('font');
        TLayout.LayoutLoad('link');
        TLayout.LayoutLoad('alink');
        TLayout.LayoutLoad('vlink');
}
     end;
Du hast doch schon Dein Objekt 'DialogSeite'. Was spricht gegen
Delphi-Quellcode:
        (DialogSeite As TLayout).BilderGesamt;
        (DialogSeite As TLayout).LayoutLoad('gb');
        (DialogSeite As TLayout).LayoutLoad('font');
        (DialogSeite As TLayout).LayoutLoad('link');
        (DialogSeite As TLayout).LayoutLoad('alink');
        (DialogSeite As TLayout).LayoutLoad('vlink');
?
Dann brauchst Du auch keine Klassenmethoden. Die sind hier eigentlich sowieso fehl am Platz.

Gruß, teebee
  Mit Zitat antworten Zitat