I've use code (in wxFrame's constructor):
// ------------------------
wxSizer *sizerInput = new wxBoxSizer(wxHORIZONTAL);
wxPanel *inputPanel = new wxPanel(this, wxID_ANY);
input = new wxTextCtrl(inputPanel, ID_INPUT, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);
inputOk = new wxButton(inputPanel, ID_INPUTOK, wxT("OK"));
sizerInput->Add(input, 1, wxALL, 1);
sizerInput->Add(inputOk, 0, wxALL, 1);
manager.AddPane(inputPanel, wxBOTTOM, wxT("Input panel"));
inputPanel->SetAutoLayout(true);
inputPanel->SetSizer(sizerInput);
sizerInput->Fit(inputPanel);
sizerInput->SetSizeHints(inputPanel);
sizerInput->Layout();
// ------------------------
And it doesn't properly resize itself automatically
More exactly, i think that it's because parent sizer in the pane's frame must add this "control" as: sizerMain->Add(sizerBottom, 0, wxGROW, 0);
but not as sizerMain->Add(sizerBottom, 1, wxGROW, 0);
Is there a known solution?