PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] How to Close a Popup Menu programmatically?
[WD20] How to Close a Popup Menu programmatically?
Iniciado por guest, 12,dic. 2015 10:53 - 2 respuestas
Publicado el 12,diciembre 2015 - 10:53
Hi,

is there a function / command for explicitly closing an open PopupMenu?

Explanation: I want to move the mouse cursor over a Ribbon-Option (Button), open the Popup Menu and keep it open as long as the mouse cursor is over the button and let it close automatically (= without any user interaction) if the cursor leaves the button.
Publicado el 12,diciembre 2015 - 12:26
Hi Guenter

I don't know of any built in function, but as such a menu closes as soon as there is a mouse click OUTSIDE its area, I guess you could just simulate the mouse click at a known(empty) position by sending the appropriate message to the window..

Best regards
Publicado el 12,diciembre 2015 - 16:50
Hi Fabrice, thank you! That's a good idea!