events on treectrl

hi,
i want to handle right mouse over treectrl and found in old code that if under windows (wxmsw)
the EVT_TREE_ITEM_RIGHT_CLICK and in other cases EVT_RIGHT_UP is handled.

is there any reason for this.
maybe there was need in older versions ?

thanks
andreas

andreas graeper wrote:

hi,
i want to handle right mouse over treectrl and found in old code that if
under windows (__wxmsw__)
the EVT_TREE_ITEM_RIGHT_CLICK and in other cases EVT_RIGHT_UP is handled.

is there any reason for this.
maybe there was need in older versions ?

If it's for a popup menu then you probably want to use EVT_CONTEXT_MENU. It will be sent on button down on some platforms and on button up on others, because there are different standards. Which is probably why it was done differently in the code you were looking at.

···

--
Robin Dunn
Software Craftsman