Re: wxEuphoria: Popup Menu for Right Click on ListBox
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 02, 2005
- 504 views
cklester wrote: > > What are the steps needed to get a popup menu working from a right-click event > on a wxListBox? I've tried to use wxEVT_COMMAND_LISTBOX_RIGHT_CLICK in keeping > with other event names, but it doesn't seem to work. > Try simply using wxEVT_RIGHT_DOWN. I don't see any easy way to make a right click select an item in a wxListBox, but if that's what you need, you could use a wxListCtrl, and use wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, which should do the trick for you. Matt Lewis