Update editor control font centrally, in wxPropertyGrid::RefreshEditor()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-12-29 17:58:32 +00:00
parent 2ed73c7363
commit a6353fe8f6
5 changed files with 31 additions and 32 deletions

View File

@@ -1121,7 +1121,7 @@ bool wxPropertyGridPageState::DoSetPropertyValueString( wxPGProperty* p, const w
{
p->SetValue(variant);
if ( m_selected==p && this==m_pPropGrid->GetState() )
p->UpdateControl(m_pPropGrid->GetEditorControl());
m_pPropGrid->RefreshEditor();
}
return true;
@@ -1137,7 +1137,7 @@ bool wxPropertyGridPageState::DoSetPropertyValue( wxPGProperty* p, wxVariant& va
{
p->SetValue(value);
if ( m_selected==p && this==m_pPropGrid->GetState() )
p->UpdateControl(m_pPropGrid->GetEditorControl());
m_pPropGrid->RefreshEditor();
return true;
}
@@ -1504,9 +1504,7 @@ void wxPropertyGridPageState::DoSetPropertyValues( const wxVariantList& list, wx
m_pPropGrid->Thaw();
if ( this == m_pPropGrid->GetState() )
{
m_selected->UpdateControl(m_pPropGrid->GetEditorControl());
}
m_pPropGrid->RefreshEditor();
}
}