Einzelnen Beitrag anzeigen

HolgerCW

Registriert seit: 28. Nov 2006
Ort: Marl
1.207 Beiträge
 
Delphi XE7 Enterprise
 
#1

Alle Forms eines Projektes finden

  Alt 9. Okt 2012, 08:39
Delphi-Version: 2006
Hallo zusammen,

so finde ich ja alle schon erstellten Forms in der Anwendung:

Delphi-Quellcode:
CB_Form: TComboBox;

var
 Form: TForm;
begin

 CB_Form.Clear;
 For I := 0 to Application.ComponentCount - 1 do
 begin

  if Application.Components[I] is TForm then
  begin

   Form := TForm(Application.FindComponent(Application.Components[I].Name));

   CB_Form.Items.Add(Form.Name)

  end;

 end;

end;
Wie kann ich denn auch die Forms finden, welche noch nicht "created" wurden ?

Gruss

Holger
  Mit Zitat antworten Zitat