Autor Beitrag
[r2d2]
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

WinXP
D5 Enterprise
BeitragVerfasst: Mo 08.03.04 19:56 
Hi
Wie schließt man denn ein Popup-Menu ohne draufzuklicken (brauch ich für ein Popup-Menu eines Tray-Icons). Ich müsste es auch wieder "aufpoppen" lassen können, Popupmenu.destroy geht also net.

thx
r2d2
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Mo 08.03.04 21:42 
moin,
aufpoppen geht ungefähr so:
ausblenden Delphi-Quelltext
1:
2:
Popupmenu.popup(x,y);//anzeigen
popmenu.close;//ist glaube ich schließen


Habe leider keine Delphihilfe zur Verfügung!

Rokdd
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Di 09.03.04 15:10 
rokdd hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
popmenu.close;//ist glaube ich schließen					


Habe leider keine Delphihilfe zur Verfügung!


ich schon... is nich, popupmenu.close... :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Di 09.03.04 16:11 
okay gehts halt so(mit Delphihilfe):
ausblenden Delphi-Quelltext
1:
popup.free;					



rokdd
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 09.03.04 19:58 
Nein.. das Popup per Free freizugeben ist auch keine Lösung..!!

Aber ich schätze dieser Tipp hier wird dir weiterhelfen.. www.swissdelphicente.../showcode.php?id=221 ;)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Di 09.03.04 20:29 
Ich habe es aber bei mir vorischtshalber probiert! :?!?:


robert
[r2d2] Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

WinXP
D5 Enterprise
BeitragVerfasst: Mi 10.03.04 20:50 
du kriegst es aber dann nicht nochmal auf
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Mi 10.03.04 20:54 
.. und bei mir gings auch wieder auf!


Robert
[r2d2] Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

WinXP
D5 Enterprise
BeitragVerfasst: Sa 13.03.04 18:30 
hmm, bei mir bringt ne access violation. wie machst du denn dein popup auf?
Is ja aber eigentlich auch egal, der link vom motzi hat scho gereicht. :)
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Sa 13.03.04 18:59 
wie oben schon geschrieben mit der finktion popup. ist aber jetzt auch egal...


Robert
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Sa 13.03.04 20:04 
rokdd hat folgendes geschrieben:
wie oben schon geschrieben mit der finktion popup. ist aber jetzt auch egal...

wie denn?
wenn du das popup mit "free" zerstört hast, kannst du es nur mit dem "create" wiederherstellen.

wie schon kunfuzius sage:"wo ein create ist, ist auch ein free"
das gilt auch umgekehrt.

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Sa 13.03.04 20:53 
lassen wirs okay. ich bin mir zu 100% sicher dass ich das damals so gemacht habe und dass es funktioniert hat. auch mehrere male hinereinander. Allerdings habe ich leider den source nicht gespeichert. soll ich es nochmal bei mir probieren?



Robert
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 13.03.04 20:59 
Das würde mich auch interessieren.

Und wieso sollen wir das lassen? Wäre doch gut zu wissen, wie das funktioniert.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Sa 13.03.04 21:05 
mich interessiert es jetzt umso mehr, denn wo ich es gerade probiert habe kam der von euch beschreibene fehler. damals kam der logischerweise nicht. kann man mich aber auch nicht ganz genau dranerinnern wo ich was gemacht habe.


Robert