X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aace2c4f96b32adc03ec4f90fba0368a258a5dcb..079f4130b861d094c79e0952966caad8b85dab67:/src/propgrid/editors.cpp?ds=sidebyside diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index d3a4418c6b..570ec33a80 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -283,9 +283,22 @@ void wxPGTextCtrlEditor::UpdateControl( wxPGProperty* property, wxWindow* ctrl ) else s = property->GetDisplayedString(); - tc->SetValue(s); -} + tc->SetValue(s); + + // Update font boldness + wxPropertyGrid* pg = property->GetGrid(); + if ( pg->HasFlag(wxPG_BOLD_MODIFIED) ) + { + if ( property->HasFlag(wxPG_PROP_MODIFIED) ) + tc->SetFont(pg->GetCaptionFont()); + else + tc->SetFont(pg->GetFont()); +#if defined(__WXMSW__) && !defined(__WXWINCE__) + ::SendMessage(GetHwndOf(tc), EM_SETMARGINS, EC_LEFTMARGIN | EC_RIGHTMARGIN, MAKELONG(0, 0)); +#endif + } +} // Provided so that, for example, ComboBox editor can use the same code // (multiple inheritance would get way too messy).