diff --git a/samples/combo/combo.cpp b/samples/combo/combo.cpp index d034aff241..145b15fc0f 100644 --- a/samples/combo/combo.cpp +++ b/samples/combo/combo.cpp @@ -753,6 +753,11 @@ MyFrame::MyFrame(const wxString& title) rowSizer = new wxBoxSizer( wxHORIZONTAL ); cc = new wxComboCtrlWithCustomPopupAnim(); + + // Let's set a custom style for the contained wxTextCtrl. We need to + // use two-step creation for it to work properly. + cc->SetTextCtrlStyle(wxTE_RIGHT); + cc->Create(panel, wxID_ANY, wxEmptyString); // Make sure we use popup that allows focusing the listview.