]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/combo/combo.cpp
Add support for id ranges to XRC.
[wxWidgets.git] / 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.