Autor Beitrag
oschulz
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Fr 30.12.05 09:16 
Kann mir bitte jemand sagen, wie ich die Formulareinträge der MDI Childs ins Menü bekomme? Also ins Fenster-Menü?
Der Jan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win2k prof, WinXP prof, Linux
D6 Prof, BCB4 Std, BCB6 Ent, BDS 2006 Ent
BeitragVerfasst: Fr 30.12.05 10:33 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
  with Form1 do
    for i := 0 to MDIChildCount - 1 do begin
      //Neues MenuItem erzeugen   
      mi := TMenuItem.Create(...);
      mi.Caption := MDIChildren[I].Caption;
      //Dann noch ins Main-Menu einfügen...
    end;


Mußt dir halt noch entsprechend das Handle vom MainMenu und das Fenster-Menu holen...

_________________
Gruß, Jan