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:
@@ -320,7 +320,8 @@ struct wxComboCtrlFeatures
|
||||
@see wxComboBox, wxChoice, wxOwnerDrawnComboBox, wxComboPopup,
|
||||
wxCommandEvent
|
||||
*/
|
||||
class wxComboCtrl : public wxControl
|
||||
class wxComboCtrl : public wxControl,
|
||||
public wxTextEntry
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
Reference in New Issue
Block a user