| 208 | } |
| 209 | |
| 210 | void SimpleHistStatsCanvas::DisplayRightClickMenu(const wxPoint& pos) |
| 211 | { |
| 212 | if (right_click_menu_id.IsEmpty()) return; |
| 213 | // Workaround for right-click not changing window focus in OSX / wxW 3.0 |
| 214 | wxActivateEvent ae(wxEVT_NULL, true, 0, wxActivateEvent::Reason_Mouse); |
| 215 | template_frame->OnActivate(ae); |
| 216 | |
| 217 | wxMenu* optMenu; |
| 218 | optMenu = wxXmlResource::Get()->LoadMenu(right_click_menu_id); |
| 219 | |
| 220 | template_frame->UpdateContextMenuItems(optMenu); |
| 221 | template_frame->PopupMenu(optMenu, pos + GetPosition()); |
| 222 | template_frame->UpdateOptionMenuItems(); |
| 223 | } |
| 224 | |
| 225 | void SimpleHistStatsCanvas::update(HLStateInt* o) |
| 226 | { |
nothing calls this directly
no test coverage detected