wxStaticBox constructor is not supposed to take a wxValidator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9795bd2ee4
commit
a1f4186efa
@ -27,23 +27,18 @@ class WXDLLEXPORT wxStaticBox: public wxStaticBoxBase, protected wxCocoaNSBox
|
||||
// ------------------------------------------------------------------------
|
||||
public:
|
||||
wxStaticBox() { }
|
||||
wxStaticBox(wxWindow *parent, wxWindowID winid,
|
||||
const wxString& title,
|
||||
wxStaticBox(wxWindow *parent, wxWindowID winid, const wxString& title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0, const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxStaticBoxNameStr)
|
||||
long style = 0, const wxString& name = wxStaticBoxNameStr)
|
||||
{
|
||||
Create(parent, winid, title, pos, size, style, validator, name);
|
||||
Create(parent, winid, title, pos, size, style, name);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID winid,
|
||||
const wxString& title,
|
||||
bool Create(wxWindow *parent, wxWindowID winid, const wxString& title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxStaticBoxNameStr);
|
||||
long style = 0, const wxString& name = wxStaticBoxNameStr);
|
||||
virtual ~wxStaticBox();
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -27,14 +27,11 @@ END_EVENT_TABLE()
|
||||
WX_IMPLEMENT_COCOA_OWNER(wxStaticBox,NSBox,NSView,NSView)
|
||||
|
||||
bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid,
|
||||
const wxString& title,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long style, const wxValidator& validator,
|
||||
const wxString& name)
|
||||
const wxString& title, const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxString& name)
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
if(!CreateControl(parent,winid,pos,size,style,validator,name))
|
||||
if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
|
||||
return false;
|
||||
m_cocoaNSView = NULL;
|
||||
SetNSBox([[NSBox alloc] initWithFrame:MakeDefaultNSRect(size)]);
|
||||
|
Loading…
Reference in New Issue
Block a user