Results 1 to 3 of 3

Thread: [RESOLVED] Problem with popupmenu

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Resolved [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.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    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
  •  



Click Here to Expand Forum to Full Width