I create a menu with this:
menu = Menu.createMenu(parent, get_entries());
menu.labelField = "@label";
...
menu.show(position.x, position.y);
How can to check if the menu is still displayed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Listen to the menuHide event of the
menu; it is dispatched when the menu or a submenu is hidden. Inside the event listener, check ifevent.target == event.currentTarget. If they are equal, it means that the menu was just hidden – otherwise it means that the menu is still visible, but one of its submenus were just hidden.