Autor Beitrag
FSS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83

Win 7 Professional 64Bit
Delphi 7 PE, Delphi 2005 PE, Turbo Delphi Explorer 2006
BeitragVerfasst: Do 29.06.06 16:19 
Hallo,

wie kann ich denn bei einem Eintrag in einem MainMenu die Caption ändern?
(Der Eintrag befindet sich in einem Submenü (dürfte ja eigentlich nichts ändern))

FSS
crowley
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 406

Win XP, Win Vista, Mandriva, Ubuntu
Delphi 4-8, Delphi 2006, Delphi 2007
BeitragVerfasst: Do 29.06.06 16:27 
wenn du den namen deines TMenuItem kennst, kannst du das über "MenuItem2.Caption"... ansonsten musst du dich durch MainMenu.Items durchhangeln, bist du das richtige gefunden hast ;)... da kannst du dann auch über Caption drauf zugreifen ;)
FSS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83

Win 7 Professional 64Bit
Delphi 7 PE, Delphi 2005 PE, Turbo Delphi Explorer 2006
BeitragVerfasst: Do 29.06.06 16:45 
Sorry,

aber irgendwie steh ich da auf dem Schlauch.

ausblenden Delphi-Quelltext
1:
MainMenu1.Items.{Bezeichnung}.Caption := 'Neue Bezeichnung';					


Aber irgendwie funktioniert das nicht!
FSS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83

Win 7 Professional 64Bit
Delphi 7 PE, Delphi 2005 PE, Turbo Delphi Explorer 2006
BeitragVerfasst: Do 29.06.06 16:51 
Ok, hat sich erledigt

ausblenden Delphi-Quelltext
1:
MainMenu1.Items[1].Items[8].Items[0].Caption := 'Neue Bezeichnung';					


Vielen Dank!