Search found 3 matches

by sigipa
Sat Mar 16, 2019 9:28 am
Forum: C++ Development
Topic: wxTreeCtrl context menu
Replies: 3
Views: 173

Re: wxTreeCtrl context menu

Hello All, Okay. There was one more little wrinkle. When I set the tree id, it broke the wxGenericDirCtrl event handling. Apparently, the wxGenericDirCtrl sets an id for the tree itself. The correct thing to do was to just call GetId() on the tree and use that to connect the handler. I've included t...
by sigipa
Sat Mar 16, 2019 8:44 am
Forum: C++ Development
Topic: wxTreeCtrl context menu
Replies: 3
Views: 173

Re: wxTreeCtrl context menu

Hello All,

I figured this out. The tree used by the wxGenericDirCtrl did not have an id set. setting the tree id solved the issue.

Thanks,
-S
by sigipa
Sat Mar 16, 2019 7:15 am
Forum: C++ Development
Topic: wxTreeCtrl context menu
Replies: 3
Views: 173

wxTreeCtrl context menu

Hello All, I'm having some trouble getting a context menu event to fire with the wxTreeCtrl. I'm actually using a wxGenericDirCtrl and getting the tree from it. I've included the relevant code below. I'm new to wxWidgets, so perhaps I'm doing something stupid. Any advice would be much appreciated. f...