I'm trying to make a menu that pops up automatically on "mouse over" and closes on "mouse leave" (quotes for lack of a better term). Not only that, I want focus to return to the main window, like it was before I entered the widget. Make sense?
I've been able to use a popup menu on a label to simulate this effect by binding a $menu->Popup(... call to the <Motion> and <Enter> events (I'm using <Enter> right now, but I started with <Motion>). However, I can't get the darn thing to lose focus and close when I move the mouse off of either the popup menu or the label.
I suppose that I could right a generic callback function that checks for which widget I'm current only, try to close all menus, restore focus, etc., but that seems like overkill. What am I missing?
Thanks!
Start Free Trial