From: Jaakko Salli Date: Sun, 13 Jun 2010 10:00:14 +0000 (+0000) Subject: Use wxComboCtrl::SetTextCtrlStyle() in the combo sample X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16a97d7e9a8ab3ad2c2086aac3c4c84a46754950 Use wxComboCtrl::SetTextCtrlStyle() in the combo sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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.