X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aace2c4f96b32adc03ec4f90fba0368a258a5dcb..c363ead1e206e599d6564ac939ac7342d165e0e3:/src/propgrid/editors.cpp diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index d3a4418c6b..f7822f01de 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -283,9 +283,18 @@ void wxPGTextCtrlEditor::UpdateControl( wxPGProperty* property, wxWindow* ctrl ) else s = property->GetDisplayedString(); - tc->SetValue(s); -} + tc->SetValue(s); + // + // Fix indentation, just in case (change in font boldness is one good + // reason). +#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).