Autor Beitrag
Abu36
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59



BeitragVerfasst: Mi 15.03.06 18:12 
so, noch ein frage.

ein button der zu begin auf visible:=false steht, soll dann bei mehreren proceduren, die in einem mainmenü aufgerufen werden, wieder erschein.
ich möchte aber nicht für jeden procedure aufruf im mainmenu wieder bitbtn3.visible:=true eingeben.


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 15.03.2006 um 18:25
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 15.03.06 18:51 
user profile iconAbu36 hat folgendes geschrieben:
ich möchte aber nicht für jeden procedure aufruf im mainmenu wieder bitbtn3.visible:=true eingeben.

Musst du ja auch nicht :mrgreen: Bitbtn3.show; reicht völlig aus :zwinker:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mi 15.03.06 18:51 
Wenn er in allen Proceduren vom MainMenu wieder erscheinen soll bietet sich doch das onChange Ereignis vom MainMenu an.
Gruß
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 15.03.06 18:56 
user profile iconder Berliner hat folgendes geschrieben:
Wenn er in allen Proceduren vom MainMenu wieder erscheinen soll bietet sich doch das onChange Ereignis vom MainMenu an.
Gruß

Zitat aus Delphi-Hilfe:
Zitat:

Mit einer Ereignisbehandlungsroutine für OnChange können Sie bestimmte Operationen ausführen, wenn die Struktur des Menüs geändert wird. OnChange wird beim Laden des Menüs in den Speicher und bei Eigenschaftsänderungen, die die Menüstruktur betreffen, ausgelöst.

Soll nicht der Button angezeigt werden, wenn man auf einen Menüeintrag drückt?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mi 15.03.06 19:00 
hmmmm....ooooooppppps..sorry :shock:
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 15.03.06 19:01 
user profile iconder Berliner hat folgendes geschrieben:
hmmmm....ooooooppppps..sorry :shock:

Entschuldigung angenommen :lol:
:zwinker:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mi 15.03.06 19:03 
Aber wie währe es mit einer Actionliste ?