Now I switched to wxtreelistctrl and it doesnt appear anymore.
Her the relevant code parts:
In header file :
Code: Select all
class MyViewTree : public wxTreeListCtrl{
...
Code: Select all
...
PopUp = new wxMenu;
...
Code: Select all
...
void MyViewTree::OnRightPopUp(wxMouseEvent &ev){
PopupMenu(PopUp, ev.GetPosition());
}
...
Code: Select all
...
EVT_RIGHT_DOWN(MyViewTree::OnRightPopUp)
...
As said, this worked with wxTreeCtrl well
I even tried it in the constructor with
Code: Select all
Connect(
wxEVT_RIGHT_DOWN,
wxMouseEventHandler(MyViewTree::OnRightPopUp) );
But no effect ...
Any idea here around ?