Add name argument to wxDataViewCtrl ctor for consistency.
As all the other wxWidgets controls take the parameter in their ctor/Create() it's unexpected that wxDataViewCtrl does not. Add the name parameter and pass it to wxWindowBase::CreateBase() as usual. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3888,9 +3888,13 @@ void wxDataViewCtrl::Init()
|
||||
m_headerArea = NULL;
|
||||
}
|
||||
|
||||
bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxValidator& validator )
|
||||
bool wxDataViewCtrl::Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long style,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
// if ( (style & wxBORDER_MASK) == 0)
|
||||
// style |= wxBORDER_SUNKEN;
|
||||
@@ -3898,7 +3902,7 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
Init();
|
||||
|
||||
if (!wxControl::Create( parent, id, pos, size,
|
||||
style | wxScrolledWindowStyle, validator))
|
||||
style | wxScrolledWindowStyle, validator, name))
|
||||
return false;
|
||||
|
||||
SetInitialSize(size);
|
||||
|
Reference in New Issue
Block a user