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).