Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Popup-Menü (https://www.delphipraxis.net/12700-popup-menue.html)

edosoft 2. Dez 2003 16:51


Popup-Menü
 
Kan ich beim TPopupMenu von Delphi irgendwie feststellen ob es grad angezeigt wird?

trifid 2. Dez 2003 18:26

Re: Popup-Menü
 
Hallo,

in der Doku steht !!!
"Das Ereignis OnPopup wird unmittelbar vor dem Einblenden des Popup-Menüs ausgelöst."

edosoft 4. Dez 2003 12:04

Re: Popup-Menü
 
Und wann seh ich wenns gschlossen wurde?

trifid 4. Dez 2003 12:47

Re: Popup-Menü
 
Hallo,

leider stellt dafür die VCL kein Ereignis wie onClose oder OnExit zur Verfügung ...

Beim "OnClick" wird das Popup wieder "weggezaubert",
jedoch wenn kein MenuItem angeklickt wurde und Du den Bereich des PopupMenüs verläßt bekommst Du keine Information dass das Popup weg ist

Vielleicht bekommst Du mehr Info's über die API GetMenuItemInfo heraus

edosoft 7. Dez 2003 17:23

Re: Popup-Menü
 
Des funktioniert nicht mit der API...

SirThornberry 7. Dez 2003 18:06

Re: Popup-Menü
 
vielleicht gehts mit
Delphi-Quellcode:
IsWindowVisible(popupmenu1.handle)

edosoft 16. Dez 2003 17:05

Re: Popup-Menü
 
geht leider nicht...


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz