Context menu from the object on the 3Dscene

This commit is contained in:
YuSanka 2018-12-07 17:50:48 +01:00
parent 0eba32bb0c
commit c80267bb29
6 changed files with 212 additions and 93 deletions

View file

@ -24,13 +24,11 @@ wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const
wxMenuItem* item = menu->Append(id, string, description);
item->SetBitmap(icon);
if (event_handler != nullptr && event_handler != menu)
#ifdef __WXMSW__
if (event_handler != nullptr && event_handler != menu)
event_handler->Bind(wxEVT_MENU, cb, id);
#else
menu->Bind(wxEVT_MENU, cb, id);
#endif
else
#endif // __WXMSW__
menu->Bind(wxEVT_MENU, cb, id);
return item;