|
-
Aug 25th, 2009, 01:09 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Problem with popupmenu
Hi, I'm using a popupmenu with a Listview to move items up/down or top/bottom.
This is how I have the menu.

The problem is that when I hover the mouse cursor over "Move Up" or "Move Down", then those items are automatically 'clicked' as soon as the submenu's "Move to Top" or "Move to Bottom" become visible. The code behind "Move Up" or "Move Down" runs and moves the Listview items up or down and that shouldn't happen.
The other problem is that the menu won't disappear when I do manually click on the "Move Up" or "Move Down" menu items.
Is there any way to fix that? I rather not change the way the menu items are arranged and keep it the way it is.
This question has probably been asked before, but I couldn't find any similar threads.
-
Aug 25th, 2009, 01:17 PM
#2
Re: Problem with popupmenu
The behaviour you are seeing is the way it should be working.
The problem is that "Move Up" and "Move Down" are not menu items, they are sub-menus which contain the menu items "Move to Top" and "Move to Bottom".
Either put "..Top"/"..Bottom" at the same level as "..Up"/"..Down", or create "..up one"/"..down one" at the same level as Top/Bottom
-
Aug 25th, 2009, 01:29 PM
#3
Thread Starter
Frenzied Member
Re: Problem with popupmenu
Ok, I didn't know it was supposed to work that way.
Thank you, si_the_geek.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|