Override wxTextEntry::GetSelection(long *from, long *to) in wxOwnerDrawnComboBox to resolve virtual method hiding issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fda6279358
commit
9ff4b6ccd9
@ -316,6 +316,11 @@ public:
|
||||
virtual int FindString(const wxString& s, bool bCase = false) const;
|
||||
virtual void Select(int n);
|
||||
virtual int GetSelection() const;
|
||||
|
||||
// Override this just to maintain consistency with virtual methods
|
||||
// between classes.
|
||||
virtual void GetSelection(long *from, long *to) const;
|
||||
|
||||
virtual void SetSelection(int n) { Select(n); }
|
||||
|
||||
|
||||
|
@ -1070,6 +1070,11 @@ int wxOwnerDrawnComboBox::GetSelection() const
|
||||
return GetVListBoxComboPopup()->GetSelection();
|
||||
}
|
||||
|
||||
void wxOwnerDrawnComboBox::GetSelection(long *from, long *to) const
|
||||
{
|
||||
return wxComboCtrl::GetSelection(from, to);
|
||||
}
|
||||
|
||||
int wxOwnerDrawnComboBox::DoInsertItems(const wxArrayStringsAdapter& items,
|
||||
unsigned int pos,
|
||||
void **clientData,
|
||||
|
Loading…
Reference in New Issue
Block a user