// 2) Insertion of the components in the window
// We use a FlexGridSizer
+// wxFlexGridSizer *sizerV = new wxFlexGridSizer(1);
+// wxFlexGridSizer *sizerH1 = new wxFlexGridSizer(0);
+// wxFlexGridSizer *sizerH2 = new wxFlexGridSizer(2);
wxFlexGridSizer *sizer = new wxFlexGridSizer(2);
+
if (title!="")
{
sizer->Add( new wxStaticText(panel,-1, bbtk::std2wx(title) ) );
+ sizer->Add( new wxStaticText(panel,-1, _T("") ) );
}
//---------------------------------------------------------------------
if (mTypeForm==1)
(wxObjectEventFunction)
(void (wxPanel::*)(wxScrollEvent&))
&ComboBoxWidget::OnSpinCtrlClick);
-
sizer->Add( mwxspinbutton,1,wxEXPAND );
}
-
sizer->AddGrowableCol(0);
+
panel->SetSizer(sizer);
- FillItems( iSelection,lstIn );
-
-// for (i=0;i<lstIn.size(); i++)
-// {
-// itemcontainer->Append( bbtk::std2wx( lstIn[i] ) );
-// } // for i
-// itemcontainer->SetSelection(iSelection);
+ FillItems( iSelection,lstIn );
}
//-------------------------------------------------------------------------
void ComboBoxWidget::OnSpinCtrlClick(wxCommandEvent& event)
{
int iSelection = mwxspinbutton->GetValue();
- printf("EED ComboBoxWidget::OnSpinCtrlClick %d\n", iSelection );
itemcontainer->SetSelection(iSelection);
OnComboBoxSelection( iSelection );
-
-/*
- if (mBox->bbGetInputType()==0)
- {
- mBox->bbSetOutputOut( mwxSpinCtrl->GetValue() );
- } else {
- mBox->bbSetOutputOut( mwxSpinButton->GetValue() );
- }// if Type
-
- // and signal that the output has changed
- //if(_reactiveOnKeyStroke==1){
- mBox->bbSignalOutputModification(std::string("Out"));
- //}
-*/
}