1. wxEuphoria: Popup Menu for Right Click on ListBox

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/

new topic     » topic index » view message » categorize

2. Re: wxEuphoria: Popup Menu for Right Click on ListBox

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu