<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 142: [wxTreeListCtrl] Context menu event is item missing</title><link>https://sourceforge.net/p/wxcode/bugs/142/</link><description>Recent changes to 142: [wxTreeListCtrl] Context menu event is item missing</description><atom:link href="https://sourceforge.net/p/wxcode/bugs/142/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 28 Apr 2012 13:17:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wxcode/bugs/142/feed.rss" rel="self" type="application/rss+xml"/><item><title>[wxTreeListCtrl] Context menu event is item missing</title><link>https://sourceforge.net/p/wxcode/bugs/142/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;wxEVT_COMMAND_TREE_ITEM_MENU event does not report the item, on which the mouse click happened. So it is not possible to get different context menu for different items in the tree.&lt;br /&gt;
The fix is easy: in src/treelistctrl.cpp: change line 4320: SendEvent(wxEVT_COMMAND_TREE_ITEM_MENU, 0, &amp;amp;nevent);&lt;br /&gt;
to  SendEvent(wxEVT_COMMAND_TREE_ITEM_MENU, item, &amp;amp;nevent);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">T. Modes</dc:creator><pubDate>Sat, 28 Apr 2012 13:17:40 -0000</pubDate><guid>https://sourceforge.net71b92d63ae2047046c58221f40e4c20df511af16</guid></item></channel></rss>