]> Creatis software - bbtk.git/commitdiff
#3235 BBTK Bug New Normal - size wxcombo box
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Wed, 13 Mar 2019 13:17:40 +0000 (14:17 +0100)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Wed, 13 Mar 2019 13:17:40 +0000 (14:17 +0100)
packages/wx/src/bbwxComboBox.cxx

index 3c03e1545a20faa251cc6c9724844497a0f2a212..29d37820119456194171df7eb87655fd3da63475 100644 (file)
@@ -82,7 +82,7 @@ namespace bbwx
        } else if (mTypeForm==0) {
                wxChoice *wxchoice = new wxChoice ( panel , -1, wxDefaultPosition,wxSize(sizeX,sizeY));
                itemcontainer=wxchoice;
-               sizer->Add( wxchoice,1,wxEXPAND ); 
+               sizer->Add( wxchoice,1,wxGROW ); 
 
                Connect( wxchoice->GetId(), 
                  wxEVT_COMMAND_CHOICE_SELECTED, (wxObjectEventFunction) (void (wxPanel::*)(wxEvent&))&ComboBoxWidget::OnComboBox ); 
@@ -126,6 +126,13 @@ namespace bbwx
 
                VerifyDeselect(iSelection);
 
+               if (mTypeForm==0) 
+               { 
+                       wxChoice *wxchoise=(wxChoice *)itemcontainer;
+                       wxchoise->SetToolTip( itemcontainer->GetString(iSelection)    );
+               } // if mTypeForm
+
+
 //             mBox->bbSignalOutputModification("Out");
 //             mBox->bbSignalOutputModification("OutString");
        } // if iSelection
@@ -194,8 +201,8 @@ void ComboBox::bbUserSetDefaultValues()
        bbSetInputSelection(0);
        bbSetInputTitle("");
        bbSetInputForm(0);
-       bbSetInputWinWidth(100);
-       bbSetInputWinHeight(200);
+       bbSetInputWinWidth(10);
+       bbSetInputWinHeight(45);
        bbSetInputDeselect(false);
 }
 //=====