1. wxEuphoria: Popup Menu for Right Click on ListBox
- Posted by cklester <cklester at yahoo.com> Nov 30, 2005
- 493 views
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. -=ck "Programming in a state of Euphoria." http://www.cklester.com/euphoria/
2. Re: wxEuphoria: Popup Menu for Right Click on ListBox
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 02, 2005
- 482 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