Have wxPGTextCtrlEditor::UpdateControl() update wxTextCtrl font boldness based on property's modified-status

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-12-26 18:46:08 +00:00
parent 2f1c8faf2c
commit f521bae665
7 changed files with 48 additions and 18 deletions

View File

@@ -639,10 +639,10 @@ int wxPGProperty::Index( const wxPGProperty* p ) const
return wxNOT_FOUND;
}
void wxPGProperty::UpdateControl( wxWindow* primary )
void wxPGProperty::UpdateControl( wxWindow* editorWnd )
{
if ( primary )
GetEditorClass()->UpdateControl(this, primary);
if ( editorWnd )
GetEditorClass()->UpdateControl(this, editorWnd);
}
bool wxPGProperty::ValidateValue( wxVariant& WXUNUSED(value), wxPGValidationInfo& WXUNUSED(validationInfo) ) const
@@ -1336,18 +1336,13 @@ void wxPGProperty::SetFlagRecursively( FlagType flag, bool set )
void wxPGProperty::RefreshEditor()
{
if ( m_parent && GetParentState() )
{
wxPropertyGrid* pg = GetParentState()->GetGrid();
if ( pg->GetSelectedProperty() == this )
{
wxWindow* editor = pg->GetEditorControl();
if ( editor )
GetEditorClass()->UpdateControl( this, editor );
}
}
}
if ( !m_parent )
return;
wxPropertyGrid* pg = GetGrid();
if ( pg && pg->GetSelectedProperty() == this )
UpdateControl(pg->GetEditorControl());
}
wxVariant wxPGProperty::GetDefaultValue() const
{