I have a little problem with wxComboBox.
I want it to have a certain size and to be place in a specific place in the window,but it simply is as big as the window!
here's a screenshot:
and here the code:
Code: Select all
wxSeasonsFrame::wxSeasonsFrame()
: wxFrame(NULL,wxID_ANY,wxT("wxSeasons"),wxDefaultPosition,wxSize(600,400))
{
showTitles.Add(wxT("ciao"));
showTitles.Add(wxT("ciao2"));
showTitles.Add(wxT("ciao3"));
vSizer=new wxBoxSizer(wxVERTICAL);
vSizer2=new wxBoxSizer(wxVERTICAL);
showBox=new wxComboBox(this,ID_SHOWCOMBO,wxEmptyString,wxPoint(100,50),wxSize(10,25),showTitles,wxCB_DROPDOWN | wxCB_READONLY);
vSizer2->Add(showBox,0,wxALL,50);
vSizer->Add(vSizer2,0,wxALL,50);
}
Code: Select all
wxSeasonsFrame::wxSeasonsFrame()
: wxFrame(NULL,wxID_ANY,wxT("wxSeasons"),wxDefaultPosition,wxSize(600,400))
{
showTitles.Add(wxT("ciao"));
showTitles.Add(wxT("ciao2"));
showTitles.Add(wxT("ciao3"));
showBox=new wxComboBox(this,ID_SHOWCOMBO,wxEmptyString,wxPoint(100,50),wxSize(10,25),showTitles,wxCB_DROPDOWN | wxCB_READONLY);
}
As you can see,it's not a complex program..
Could you help me,please?