Instead of having wxComboCtrl mimic wxTextEntry interface, make it actually inherit from the class and implement functions to redirect to the embedded wxTextCtrl. This allows us to simplify the code and get rid of the dirty trick of directing wxComboCtrl's validator to the embedded wxTextCtrl. Also see #12779, which issue 1 is fixed by this change.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-12-16 17:21:49 +00:00
parent 25199f9859
commit fda6279358
8 changed files with 121 additions and 75 deletions

View File

@@ -320,7 +320,8 @@ struct wxComboCtrlFeatures
@see wxComboBox, wxChoice, wxOwnerDrawnComboBox, wxComboPopup,
wxCommandEvent
*/
class wxComboCtrl : public wxControl
class wxComboCtrl : public wxControl,
public wxTextEntry
{
public:
/**