Fix visual state of enabled/disabled wxPropertyGrid
wxPropertyGrid needs to be refreshed while enabling/disabling to display proper visual states of all wxPGProperty items.
This commit is contained in:
@@ -1457,6 +1457,7 @@ protected:
|
|||||||
virtual void DoThaw() wxOVERRIDE;
|
virtual void DoThaw() wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
|
virtual void DoEnable(bool enable) wxOVERRIDE;
|
||||||
|
|
||||||
#ifndef wxPG_ICON_WIDTH
|
#ifndef wxPG_ICON_WIDTH
|
||||||
wxBitmap *m_expandbmp, *m_collbmp;
|
wxBitmap *m_expandbmp, *m_collbmp;
|
||||||
|
@@ -1185,6 +1185,12 @@ wxSize wxPropertyGrid::DoGetBestSize() const
|
|||||||
return wxSize(width, lineHeight*numLines + 40);
|
return wxSize(width, lineHeight*numLines + 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxPropertyGrid::DoEnable(bool enable)
|
||||||
|
{
|
||||||
|
wxControl::DoEnable(enable);
|
||||||
|
Refresh(false);
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void wxPropertyGrid::OnTLPChanging( wxWindow* newTLP )
|
void wxPropertyGrid::OnTLPChanging( wxWindow* newTLP )
|
||||||
|
Reference in New Issue
Block a user