Re: wxEuphoria: Popup Menu for Right Click on ListBox

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu