added wxTextEntry::DoGetValue() to allow returning empty string if the control currently contains hint text

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-02 13:31:29 +00:00
parent 7bc7db450b
commit 135b23b266
13 changed files with 52 additions and 30 deletions

View File

@@ -22,7 +22,6 @@ public:
// implement wxTextEntryBase pure virtual methods
virtual void WriteText(const wxString& text);
virtual wxString GetValue() const;
virtual void Replace(long from, long to, const wxString& value);
virtual void Remove(long from, long to);
@@ -46,6 +45,8 @@ public:
virtual void SetEditable(bool editable);
protected:
virtual wxString DoGetValue() const;
// translate wx text position (which may be -1 meaning "last one") to a
// valid Motif text position
long GetMotifPos(long pos) const;