AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Problem mit Klassenmethoden

Ein Thema von billi · begonnen am 1. Feb 2004 · letzter Beitrag vom 5. Feb 2004
 
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
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:28 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz