From: Eduardo DAVILA Date: Wed, 2 Aug 2023 15:42:33 +0000 (+0200) Subject: Clean Code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=07fa1454b601b139264ab0f445f59f5dcbcb9b42;p=bbtk.git Clean Code --- diff --git a/packages/wx/src/bbwxCommandButton.cxx b/packages/wx/src/bbwxCommandButton.cxx index 24fccf7..a927b07 100644 --- a/packages/wx/src/bbwxCommandButton.cxx +++ b/packages/wx/src/bbwxCommandButton.cxx @@ -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 ,