Also implement wxSpinCtrl::GetTextValue() for wxGTK1
This commit is contained in:
@@ -48,6 +48,7 @@ public:
|
|||||||
void SetValue(const wxString& text);
|
void SetValue(const wxString& text);
|
||||||
void SetSelection(long from, long to);
|
void SetSelection(long from, long to);
|
||||||
|
|
||||||
|
virtual wxString GetTextValue() const;
|
||||||
virtual int GetValue() const;
|
virtual int GetValue() const;
|
||||||
virtual void SetValue( int value );
|
virtual void SetValue( int value );
|
||||||
virtual void SetRange( int minVal, int maxVal );
|
virtual void SetRange( int minVal, int maxVal );
|
||||||
|
@@ -203,6 +203,13 @@ int wxSpinCtrl::GetMax() const
|
|||||||
return (int)ceil(m_adjust->upper);
|
return (int)ceil(m_adjust->upper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxString wxSpinCtrl::GetTextValue() const
|
||||||
|
{
|
||||||
|
wxCHECK_MSG(m_widget, wxEmptyString, "invalid spin button");
|
||||||
|
|
||||||
|
return gtk_entry_get_text( GTK_ENTRY(m_widget) );
|
||||||
|
}
|
||||||
|
|
||||||
int wxSpinCtrl::GetValue() const
|
int wxSpinCtrl::GetValue() const
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( (m_widget != NULL), 0, wxT("invalid spin button") );
|
wxCHECK_MSG( (m_widget != NULL), 0, wxT("invalid spin button") );
|
||||||
|
Reference in New Issue
Block a user