When I use a wxStaticLine within a wxFlexGridSizer, it never gets displayed. But, if i add it directly to a wxBoxSizer, with no other control next to it, it gets displayed correctly. What is it that I am doing wrong?
So, the following code does NOT work:
Code: Select all
wxFlexGridSizer* fgs_0 = new wxFlexGridSizer(1, 2, 0, 0);
wxStaticText* InfoText = new wxStaticText(m_DetailsScrolledWindow, wxID_ANY, "Information", wxPoint(-1, 200), wxDefaultSize);
fgs_0->Add(InfoText);
wxStaticLine* itemStaticLine12 = new wxStaticLine(m_DetailsScrolledWindow, wxID_STATIC, wxPoint(100, 200), wxDefaultSize, wxLI_HORIZONTAL);
fgs_0->Add(itemStaticLine12, 0, wxGROW | wxALL, 5);
m_DetailsControlsbox->Add(fgs_0);
Code: Select all
wxStaticText* InfoText = new wxStaticText(m_DetailsScrolledWindow, wxID_ANY, "Information", wxPoint(-1, 200), wxDefaultSize);
m_DetailsControlsbox->Add(InfoText);
wxStaticLine* itemStaticLine12 = new wxStaticLine(m_DetailsScrolledWindow, wxID_STATIC, wxPoint(100, 200), wxDefaultSize, wxLI_HORIZONTAL);
m_DetailsControlsbox->Add(itemStaticLine12, 0, wxGROW | wxALL, 5);