14PANEL_SETUP_VIA_STACKS_BASE::PANEL_SETUP_VIA_STACKS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
22 m_grid->CreateGrid( 0, 0 );
23 m_grid->EnableEditing(
true );
24 m_grid->EnableGridLines(
true );
25 m_grid->EnableDragGridSize(
false );
26 m_grid->SetMargins( 0, 0 );
29 m_grid->EnableDragColMove(
false );
30 m_grid->EnableDragColSize(
true );
31 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
34 m_grid->EnableDragRowSize(
true );
35 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
40 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
41 bMainSizer->Add(
m_grid, 1, wxALL|wxEXPAND, 5 );
43 wxBoxSizer* bButtonSizer;
44 bButtonSizer =
new wxBoxSizer( wxHORIZONTAL );
47 bButtonSizer->Add( 0, 0, 1, wxEXPAND, 5 );
49 m_addButton =
new wxButton(
this, wxID_ANY,
_(
"Add..."), wxDefaultPosition, wxDefaultSize, 0 );
52 m_editButton =
new wxButton(
this, wxID_ANY,
_(
"Edit..."), wxDefaultPosition, wxDefaultSize, 0 );
55 m_removeButton =
new wxButton(
this, wxID_ANY,
_(
"Remove"), wxDefaultPosition, wxDefaultSize, 0 );
59 bMainSizer->Add( bButtonSizer, 0, wxEXPAND, 5 );
62 this->SetSizer( bMainSizer );
PANEL_SETUP_VIA_STACKS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)