porting back support for GetSelection(from,to)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,6 +103,7 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
|
||||
virtual void Copy();
|
||||
virtual void Cut();
|
||||
virtual void Paste();
|
||||
|
||||
virtual void SetInsertionPoint(long pos);
|
||||
virtual void SetInsertionPointEnd();
|
||||
virtual long GetInsertionPoint() const;
|
||||
@@ -113,6 +114,10 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
|
||||
virtual void SetEditable(bool editable);
|
||||
virtual bool IsEditable() const;
|
||||
|
||||
#if wxABI_VERSION >= 20810
|
||||
void GetSelection( long* from, long* to ) const;
|
||||
#endif
|
||||
|
||||
virtual unsigned int GetCount() const;
|
||||
|
||||
virtual void Undo();
|
||||
|
@@ -523,6 +523,12 @@ void wxComboBox::SetSelection(long from, long to)
|
||||
m_text->SetSelection(from,to);
|
||||
}
|
||||
|
||||
void wxComboBox::GetSelection(long *from, long* to) const
|
||||
{
|
||||
if ( m_text )
|
||||
m_text->GetSelection(from,to);
|
||||
}
|
||||
|
||||
int wxComboBox::DoAppend(const wxString& item)
|
||||
{
|
||||
return m_choice->DoAppend( item ) ;
|
||||
|
Reference in New Issue
Block a user