git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37992
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
public:
// ctors and such
{
public:
// ctors and such
+ wxListBox()
+ {
+ Init();
+ }
wxListBox( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
wxListBox( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr )
{
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr )
{
-#if wxUSE_CHECKLISTBOX
- m_hasCheckBoxes = FALSE;
-#endif // wxUSE_CHECKLISTBOX
Create(parent, id, pos, size, n, choices, style, validator, name);
}
wxListBox( wxWindow *parent, wxWindowID id,
Create(parent, id, pos, size, n, choices, style, validator, name);
}
wxListBox( wxWindow *parent, wxWindowID id,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr )
{
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr )
{
-#if wxUSE_CHECKLISTBOX
- m_hasCheckBoxes = FALSE;
-#endif // wxUSE_CHECKLISTBOX
Create(parent, id, pos, size, choices, style, validator, name);
}
virtual ~wxListBox();
Create(parent, id, pos, size, choices, style, validator, name);
}
virtual ~wxListBox();
+ void Init(); //common construction
+
bool Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
bool Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
// construction
// ----------------------------------------------------------------------------
// construction
// ----------------------------------------------------------------------------
{
m_treeview = (GtkTreeView*) NULL;
#if wxUSE_CHECKLISTBOX
{
m_treeview = (GtkTreeView*) NULL;
#if wxUSE_CHECKLISTBOX