[UFO-devel] Popup Menus
Status: Beta
Brought to you by:
schmidtjf
From: Casper B. <dec...@on...> - 2006-03-17 18:28:57
|
Posted a code snippet at rafb for easier reading, which can be found at here <http://www.rafb.net/paste/results/ZRm0io78.nln.html> (url: http://www.rafb.net/paste/results/ZRm0io78.nln.html ). So the first question would be, in the code snippet given above, am i using the popup menu correctly? If so, there seems to be a couple of issues with them. The first one would be logic-wise, shouldn't the popup menu be closed without any setup from the user when an item is activated? Now it's not all that trivial to connect each sigActivated to a 'close slot', but it feels like this should be handled by the popup menu itself. Next up is an odd bug i produced and was able to reproduce every time i tried, a screencap of it can be found here <http://img400.imageshack.us/img400/8471/screencap10ta.jpg> (url: http://img400.imageshack.us/img400/8471/screencap10ta.jpg). To reproduce it just highlight an item, leave the popup menu's bounds, and enter it again from above. And logic-wise, should items really be highlighted when the mouse is not over them? Next up, when adding "sub-menus" (i.e adding a UMenu as a child of UPopupMenu) the highlighting isn't present when hovering it, it works when clicking on it tho. I Have the feeling that i'm just abusing the class tho, if that's the case i'd appreciate an example! :) |