Autor Beitrag
colaka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 200
Erhaltene Danke: 4

Win XP, W7
Delphi 2005 Prof.
BeitragVerfasst: Mo 27.08.07 15:37 
Hallo,

ich möchte die Menüleiste ändern in Abhängigkeit vom ausgewählten Tabsheet. Außer aufwändigen Abfragen und umständlicher Programmiererei ist mir noch nichts richtiges eingefallen.

Gibt es da vielleicht eine elegante Möglichkeit?

Danke Ebi
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 27.08.07 15:45 
ich wollte auch schon wo was machen aber auf jedenfalls musst du in die OnChange bei edinem tab sheet was reinschreiben :p

EDIT: villeicht eines der menues createn und das andere destroyen?!
Sidorion
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 63



BeitragVerfasst: Mo 27.08.07 15:49 
Guck Dir mal die ActionMenuBar bzw. den ActionManager an. Actions kann man in Gruppen zusammenfassen, und dann kannst Du je nach TabSheed einzelne Action-Gruppen ein- bzw ausblenden.

Ein zweiter Weg könnte über das Menüverschmelzen wie bei MDI-Formularen funktionieren, allerdings weiss ich nicht, ob man in ein TabSheet ein MainMenu packen kann bzw. ob dieses sich dann mergen lässt.
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 27.08.07 15:51 
wo bekomm ich das actionmenue bar her?
is das bei delphi 7 schon dabei?
Sidorion
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 63



BeitragVerfasst: Mo 27.08.07 15:57 
Ja. Reiter 'Zusätzlich'.
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 27.08.07 15:58 
'n link oder so währ ja ned zuviel verlangt überhaubts reitter mit 2 T
Sidorion
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 63



BeitragVerfasst: Mo 27.08.07 16:02 
Mach mal Dein Delphi auf und klick mal auf 'Zusätzlich'. Da kann ich leider net hinverlinken.
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 27.08.07 16:03 
asooo... srY!

(naja verlinken ginge villeicht schon ^^)

aber ich dachte es is was zusätzliches!
danke!
muhaha das ding is geil!