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:
@@ -1185,6 +1185,12 @@ wxSize wxPropertyGrid::DoGetBestSize() const
|
||||
return wxSize(width, lineHeight*numLines + 40);
|
||||
}
|
||||
|
||||
void wxPropertyGrid::DoEnable(bool enable)
|
||||
{
|
||||
wxControl::DoEnable(enable);
|
||||
Refresh(false);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGrid::OnTLPChanging( wxWindow* newTLP )
|
||||
|
||||
Reference in New Issue
Block a user