Autor Beitrag
MarioL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Win 7
Delphi 6
BeitragVerfasst: Mo 02.01.06 18:52 
Hallo,

Ich möchte mein Menü (TMainMenü) mit der Taste 'F9' Ein- bzw. Ausblenden.
Weis einer wie man das bewerkstelligen kann?

MfG MarioL
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 02.01.06 19:01 
Hallo,

so:
ausblenden Delphi-Quelltext
1:
2:
for z := 0 to MainMenu1.Items.Count-1 do
  MainMenu1.Items[z].Visible := False;


//Edit1
oder so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
//ausblenden
  Menu := nil;
//...
//einblenden
  Menu := MainMenu1;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )