fixed wxComboBox::Clear to clear stored value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,7 +96,7 @@ public:
|
|||||||
virtual int GetSelection() const;
|
virtual int GetSelection() const;
|
||||||
virtual void GetSelection(long* from, long* to) const;
|
virtual void GetSelection(long* from, long* to) const;
|
||||||
virtual void SetEditable(bool editable);
|
virtual void SetEditable(bool editable);
|
||||||
virtual void Clear() { wxChoice::Clear(); m_selectionOld = -1; }
|
virtual void Clear();
|
||||||
|
|
||||||
virtual void Undo() ;
|
virtual void Undo() ;
|
||||||
virtual void Redo() ;
|
virtual void Redo() ;
|
||||||
|
@@ -748,6 +748,13 @@ int wxComboBox::GetSelection() const
|
|||||||
return wxChoice::GetSelection();
|
return wxChoice::GetSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxComboBox::Clear()
|
||||||
|
{
|
||||||
|
wxChoice::Clear();
|
||||||
|
m_selectionOld = -1;
|
||||||
|
m_value.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// standard event handling
|
// standard event handling
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user