wxVariant* pValue = NULL,
unsigned int selFlags = 0 );
+ void SetFocusOnCanvas()
+ {
+ m_canvas->SetFocusIgnoringChildren();
+ m_editorFocused = 0;
+ }
+
bool DoHideProperty( wxPGProperty* p, bool hide, int flags );
private:
}
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;