Autor Beitrag
Chris1308
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220

Win XP Prof.
D2005 Prof, D7 Prof, D7 Pers
BeitragVerfasst: Mo 01.07.02 15:47 
Hi @all!
Wie kann ich mein Menü verstecken? Ich hatte die Idee:
ausblenden Quelltext
1:
MainMenu1.Visible := mybool1;					

aber das geht nicht auch MainMenu1.Hide; oder MainMenu1.Show; funzen nicht.
Wie kann ich das machen?

Chris1308
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mo 01.07.02 16:37 
also um sie wegzubekommen kannst du folgendes nehmen:

ausblenden Quelltext
1:
mainmenu1.destroy;					


nur nehme ich an du willst sie auch wieder sichtbar machen...

dan kannst du das nicht nehmen

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 01.07.02 17:15 
Oder einfach
ausblenden Quelltext
1:
Form1.MainMenu := nil;					


Gruß
Chris1308 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220

Win XP Prof.
D2005 Prof, D7 Prof, D7 Pers
BeitragVerfasst: Mo 01.07.02 19:41 
Hi,
thx @Tino, funzt perfekt!

Chris1308