Refresh generic wxDataViewCtrl after disabling it
Grey the control out immediately, instead of waiting until the next refresh to do it. Closes #17887.
This commit is contained in:
@@ -257,10 +257,10 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_ACCESSIBILITY
|
#if wxUSE_ACCESSIBILITY
|
||||||
virtual bool Show(bool show = true) wxOVERRIDE;
|
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
|
||||||
virtual void SetName(const wxString &name) wxOVERRIDE;
|
virtual void SetName(const wxString &name) wxOVERRIDE;
|
||||||
virtual bool Reparent(wxWindowBase *newParent) wxOVERRIDE;
|
virtual bool Reparent(wxWindowBase *newParent) wxOVERRIDE;
|
||||||
#endif // wxUSE_ACCESSIBILITY
|
#endif // wxUSE_ACCESSIBILITY
|
||||||
|
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AllowMultiColumnSort(bool allow) wxOVERRIDE;
|
virtual bool AllowMultiColumnSort(bool allow) wxOVERRIDE;
|
||||||
virtual bool IsMultiColumnSortAllowed() const wxOVERRIDE { return m_allowMultiColumnSort; }
|
virtual bool IsMultiColumnSortAllowed() const wxOVERRIDE { return m_allowMultiColumnSort; }
|
||||||
|
@@ -5228,17 +5228,6 @@ bool wxDataViewCtrl::Show(bool show)
|
|||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDataViewCtrl::Enable(bool enable)
|
|
||||||
{
|
|
||||||
bool changed = wxControl::Enable(enable);
|
|
||||||
if ( changed )
|
|
||||||
{
|
|
||||||
wxAccessible::NotifyEvent(wxACC_EVENT_OBJECT_STATECHANGE, this, wxOBJID_CLIENT, wxACC_SELF);
|
|
||||||
}
|
|
||||||
|
|
||||||
return changed;
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxDataViewCtrl::SetName(const wxString &name)
|
void wxDataViewCtrl::SetName(const wxString &name)
|
||||||
{
|
{
|
||||||
wxControl::SetName(name);
|
wxControl::SetName(name);
|
||||||
@@ -5257,6 +5246,20 @@ bool wxDataViewCtrl::Reparent(wxWindowBase *newParent)
|
|||||||
}
|
}
|
||||||
#endif // wxUSE_ACCESIBILITY
|
#endif // wxUSE_ACCESIBILITY
|
||||||
|
|
||||||
|
bool wxDataViewCtrl::Enable(bool enable)
|
||||||
|
{
|
||||||
|
bool changed = wxControl::Enable(enable);
|
||||||
|
if ( changed )
|
||||||
|
{
|
||||||
|
#if wxUSE_ACCESSIBILITY
|
||||||
|
wxAccessible::NotifyEvent(wxACC_EVENT_OBJECT_STATECHANGE, this, wxOBJID_CLIENT, wxACC_SELF);
|
||||||
|
#endif // wxUSE_ACCESIBILITY
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
|
return changed;
|
||||||
|
}
|
||||||
|
|
||||||
bool wxDataViewCtrl::AssociateModel( wxDataViewModel *model )
|
bool wxDataViewCtrl::AssociateModel( wxDataViewModel *model )
|
||||||
{
|
{
|
||||||
if (!wxDataViewCtrlBase::AssociateModel( model ))
|
if (!wxDataViewCtrlBase::AssociateModel( model ))
|
||||||
|
Reference in New Issue
Block a user