12PANEL_CONSTRAINTS_BASE::PANEL_CONSTRAINTS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
14 wxBoxSizer* bMainSizer;
15 bMainSizer =
new wxBoxSizer( wxVERTICAL );
17 m_list =
new wxListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
18 bMainSizer->Add(
m_list, 1, wxEXPAND|wxALL, 3 );
20 wxBoxSizer* bButtonSizer;
21 bButtonSizer =
new wxBoxSizer( wxHORIZONTAL );
23 m_refreshButton =
new wxButton(
this, wxID_REFRESH,
_(
"Refresh"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_deleteButton =
new wxButton(
this, wxID_DELETE,
_(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
30 bMainSizer->Add( bButtonSizer, 0, wxEXPAND, 0 );
33 this->SetSizer( bMainSizer );
35 bMainSizer->Fit(
this );
PANEL_CONSTRAINTS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)