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).
if ( flags & wxODCB_PAINTING_CONTROL )
renderFlags |= wxPGCellRenderer::Control;
+ else
+ renderFlags |= wxPGCellRenderer::ChoicePopup;
if ( flags & wxODCB_PAINTING_SELECTED )
renderFlags |= wxPGCellRenderer::Selected;
void wxPropertyGrid::CorrectEditorWidgetPosY()
{
+ if ( m_selColumn == -1 )
+ return;
+
if ( m_selected && (m_wndEditor || m_wndEditor2) )
{
wxRect r = GetEditorWidgetRect(m_selected, m_selColumn);