]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxComboCtrl::SetTextCtrlStyle() in the combo sample
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 13 Jun 2010 10:00:14 +0000 (10:00 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 13 Jun 2010 10:00:14 +0000 (10:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/combo/combo.cpp

index d034aff2418f6d31848e9f1c107b29f6d88be23f..145b15fc0fc37efcc0c1321ea0778b8017c91e17 100644 (file)
@@ -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.