int sizeY
)
:
- wxPanel( parent, -1,wxDefaultPosition,wxSize(sizeX,sizeY) ) ,
+ wxPanel( parent, -1,wxDefaultPosition ) ,
mBox(box),
mTypeForm(typeForm)
{
{
sizer->Add( new wxStaticText(panel,-1, bbtk::std2wx(title) ) );
}
- sizer->AddGrowableCol(0);
- panel->SetSizer(sizer);
//---------------------------------------------------------------------
if (mTypeForm==1)
{
Connect( wxlistbox->GetId(),
wxEVT_COMMAND_LISTBOX_SELECTED, (wxObjectEventFunction) (void (wxPanel::*)(wxEvent&))&ComboBoxWidget::OnComboBox );
} else if (mTypeForm==0) {
- wxChoice *wxchoice = new wxChoice ( panel , -1 );
+ wxChoice *wxchoice = new wxChoice ( panel , -1);
itemcontainer=wxchoice;
sizer->Add( wxchoice,1,wxGROW );
+
Connect( wxchoice->GetId(),
wxEVT_COMMAND_CHOICE_SELECTED, (wxObjectEventFunction) (void (wxPanel::*)(wxEvent&))&ComboBoxWidget::OnComboBox );
}
+ sizer->AddGrowableCol(0);
+ panel->SetSizer(sizer);
+
for (i=0;i<lstIn.size(); i++)
{
itemcontainer->Append( bbtk::std2wx( lstIn[i] ) );