Implement wxCollapsibleHeaderCtrlBase::Create()
This method was declared but not implemented, so do implement it and delegate to it from wxGenericCollapsibleHeaderCtrl::Create().
This commit is contained in:
@@ -47,7 +47,15 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxBORDER_NONE,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxCollapsibleHeaderCtrlNameStr);
|
||||
const wxString& name = wxCollapsibleHeaderCtrlNameStr)
|
||||
{
|
||||
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
|
||||
return false;
|
||||
|
||||
SetLabel(label);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void SetCollapsed(bool collapsed = true) = 0;
|
||||
|
||||
|
@@ -57,10 +57,11 @@ bool wxGenericCollapsibleHeaderCtrl::Create(wxWindow *parent,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
|
||||
if ( !wxCollapsibleHeaderCtrlBase::Create(parent, id, label, pos, size,
|
||||
style, validator, name) )
|
||||
{
|
||||
return false;
|
||||
|
||||
SetLabel(label);
|
||||
}
|
||||
|
||||
Bind(wxEVT_PAINT, &wxGenericCollapsibleHeaderCtrl::OnPaint, this);
|
||||
Bind(wxEVT_LEFT_DOWN, &wxGenericCollapsibleHeaderCtrl::OnLeftDown, this);
|
||||
|
Reference in New Issue
Block a user