wxSize cis = p->OnMeasureImage(item);
- int choiceCount = p->GetChoiceCount();
+ int choiceCount = p->m_choices.GetCount();
int comVals = p->GetDisplayedCommonValueCount();
if ( item >= choiceCount && comVals > 0 )
{
}
else
{
- canvas->SetFocusIgnoringChildren();
- m_editorFocused = 0;
+ SetFocusOnCanvas();
}
}
}
else
{
- // wxGTK atleast seems to need this (wxMSW not)
- canvas->SetFocusIgnoringChildren();
+ // Make sure focus is in grid canvas (important for wxGTK, at least)
+ SetFocusOnCanvas();
}
EditorsValueWasNotModified();
}
else
{
- // Make sure focus is in grid
- canvas->SetFocusIgnoringChildren();
+ // Make sure focus is in grid canvas
+ SetFocusOnCanvas();
}
ClearInternalFlag(wxPG_FL_IN_SELECT_PROPERTY);
if ( !CommitChangesFromEditor(0) )
return false;
- m_canvas->SetFocusIgnoringChildren();
+ SetFocusOnCanvas();
DrawItem(m_selected);
return true;
// Need to set focus?
if ( !(m_iFlags & wxPG_FL_FOCUSED) )
{
- m_canvas->SetFocusIgnoringChildren();
+ SetFocusOnCanvas();
}
wxPropertyGridPageState* state = m_pState;