CommandButtonWidget::CommandButtonWidget(CommandButton* box,
wxWindow *parent,
wxString title )
- : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL),
- mBox(box)
- {
+// : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL), mBox(box)
+ : wxPanel( parent, -1, wxDefaultPosition, wxSize(20,-1), wxTAB_TRAVERSAL), mBox(box)
+ {
wxPanel *panel = this;
mwxCommandButton = new wxButton( panel, -1, title);
Connect( mwxCommandButton->GetId(), wxEVT_COMMAND_BUTTON_CLICKED ,