Update wxSpinCtrlDouble documentation

Closes #17085.
See #18764.
This commit is contained in:
Artur Wieczorek
2020-05-18 19:13:31 +02:00
parent 3ef2fc3560
commit 19da5f61bb

View File

@@ -261,6 +261,10 @@ public:
@param name @param name
Window name. Window name.
The precision (number of digits after the decimal point) of the value
of the spin control is derived from the precision of @a inc.
If necessary, default precision can be adjusted by call to SetDigits().
@see Create() @see Create()
*/ */
wxSpinCtrlDouble(wxWindow* parent, wxWindowID id = -1, wxSpinCtrlDouble(wxWindow* parent, wxWindowID id = -1,
@@ -285,7 +289,7 @@ public:
const wxString& name = "wxSpinCtrlDouble"); const wxString& name = "wxSpinCtrlDouble");
/** /**
Gets the number of digits in the display. Gets precision of the value of the spin control.
*/ */
unsigned int GetDigits() const; unsigned int GetDigits() const;
@@ -310,14 +314,15 @@ public:
double GetValue() const; double GetValue() const;
/** /**
Sets the number of digits in the display. Sets precision of the value of the spin control.
Up to 20 digits are allowed after the decimal point.
*/ */
void SetDigits(unsigned int digits); void SetDigits(unsigned int digits);
/** /**
Sets the increment value. Sets the increment value.
@note You may also need to increase the number of visible digits @note You may also need to change the precision of the value
using SetDigits using SetDigits().
*/ */
void SetIncrement(double inc); void SetIncrement(double inc);