]> Creatis software - bbtk.git/commitdiff
Clean Code
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 2 Aug 2023 15:42:33 +0000 (17:42 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 2 Aug 2023 15:42:33 +0000 (17:42 +0200)
packages/wx/src/bbwxCommandButton.cxx

index 24fccf7ddee40244ce4213aba1eccfe274a6fc64..a927b074c8c7ad68d6c44be5fcec3100a2dbc404 100644 (file)
@@ -75,9 +75,9 @@ namespace bbwx
   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 ,