Use wxComboCtrl::SetTextCtrlStyle() in the combo sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-06-13 10:00:14 +00:00
parent 1ac5cfc7c9
commit 16a97d7e9a

View File

@@ -753,6 +753,11 @@ MyFrame::MyFrame(const wxString& title)
rowSizer = new wxBoxSizer( wxHORIZONTAL ); rowSizer = new wxBoxSizer( wxHORIZONTAL );
cc = new wxComboCtrlWithCustomPopupAnim(); 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); cc->Create(panel, wxID_ANY, wxEmptyString);
// Make sure we use popup that allows focusing the listview. // Make sure we use popup that allows focusing the listview.