When press right click no cell or row selecting.
With code bellow i take 1378932544. How must tell to give me the row or column?
When i use
Code: Select all
wxMessageBox(wxString::Format(wxT("%i"),evt.GetRow()));
Thanks
Jim.
Code: Select all
void myFrame::on_RClick( wxGridEvent& event )
{
wxMenu* menu = new wxMenu;
menu->Append(1, _("&Row message... "));
menu->Connect(wxEVT_COMMAND_MENU_SELECTED, wxGridEventHandler(myFrame::OnPopupClick), NULL, this);
PopupMenu(menu);
}
void myFrame::OnPopupClick(wxGridEvent& evt)
{
if(evt.GetId()==1)
{
wxPoint point = evt.GetPosition();
wxMessageBox(wxString::Format(wxT("%i"),point.y));
}