Autor Beitrag
Jelox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Sa 26.03.05 22:57 
hi.
ich hab mal ne frage zu nem mainmenu.
also ich hab mir jetzt mal ein menu erstellt.

so nun mein problem. ich möchte gerne einzele punkte im menü deaktivieren. aber wie geht das??? weiß das einer????

danke schonmal im vorraus :)
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: Sa 26.03.05 23:07 
Hallo,

so:
ausblenden Delphi-Quelltext
1:
MenueDokumentNeu.Enabled := False;					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.03.05 00:30 
oder im objektinspektor die eigenschaft enabled des items festlegen

gruß
schuetz10
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: So 27.03.05 14:37 
Kann man eigentlich die Farbe eines Main Menus irgendwie ändern?

mfg
schuetz10
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.03.05 14:51 
gute frage... wozu den dies und welche farbe soll es denn haben? das menü selbst oder die schrift?

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
schuetz10
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: So 27.03.05 15:15 
Naja, irgendeine Benutzerdefinierte, also nicht z.B. clred.
Ich hätte zum beispiel einen colordialog, und stelle da eine Farbe für das Programm ein. Diese Farbe hat dann die Form, und das Main Menu. Wenn man aber so schaut, ist das MainMenu immer grau

mfg
schuetz10
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.03.05 15:22 
na wenn denn colordialog nutz kannst du doch auch ne benutzerdefinierte farbe festlegen entweder im farbverlauf den dir der colordialog zur verfügung stellt oder über den rgbwert

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 27.03.05 15:26 
Jip, indem Du eine OwnerDraw-Funktion definierst.

Wenn Du nur die Maenü-Leiste im Programm meinst: Form.Color auf den gewählten Wert setzen. Hat dann aber auch Auswirkunge auf Buttons und ähnliches. Diese nutzten auch die ParentColor-Einstellung, ohne diese Konfigurierbar zu machen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.