MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / DisplayRightClickMenu

Method DisplayRightClickMenu

Explore/SimpleHistCanvas.cpp:210–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void 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
225void SimpleHistStatsCanvas::update(HLStateInt* o)
226{

Callers

nothing calls this directly

Calls 6

GetPositionFunction · 0.50
IsEmptyMethod · 0.45
OnActivateMethod · 0.45
LoadMenuMethod · 0.45
UpdateOptionMenuItemsMethod · 0.45

Tested by

no test coverage detected