Once a menu item has been selected from a menu bar and a drop-down list of menu items is show, the only way to dismiss the list is to either select a menu item or to click on a top level menu bar item. Is there a way to dismiss the list by clicking outside of the menu bar? As an example, when you select "File" from Firefox or IE's menu bar and click anywhere within the browser, the menu selection list is no longer visible. Can this be achieved in ThinWire by some how registering a listener on the window that could then force the dismissal of the menu item list?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The framework is setup currently so that it will close a menu when the background of the frame or dialog is clicked. The only gap is if you switch to a different application or click on the toolbars/menus of the browser itself. At one point I looked into trying to hook into an appropriate window event so that I could trigger the menu to close in those cases as well, but I was unable to get it to work for some reason. In any case, it's been awhile, but if someone wants to hack up the client code and find the appropriate hook, it'll help me get it added to the codebase more quickly.
-Josh <G>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Once a menu item has been selected from a menu bar and a drop-down list of menu items is show, the only way to dismiss the list is to either select a menu item or to click on a top level menu bar item. Is there a way to dismiss the list by clicking outside of the menu bar? As an example, when you select "File" from Firefox or IE's menu bar and click anywhere within the browser, the menu selection list is no longer visible. Can this be achieved in ThinWire by some how registering a listener on the window that could then force the dismissal of the menu item list?
Thanks
The framework is setup currently so that it will close a menu when the background of the frame or dialog is clicked. The only gap is if you switch to a different application or click on the toolbars/menus of the browser itself. At one point I looked into trying to hook into an appropriate window event so that I could trigger the menu to close in those cases as well, but I was unable to get it to work for some reason. In any case, it's been awhile, but if someone wants to hack up the client code and find the appropriate hook, it'll help me get it added to the codebase more quickly.
-Josh <G>
BTW, I opened a feature request to track this: https://sourceforge.net/tracker/index.php?func=detail&aid=1840662&group_id=170706&atid=855242