Ticket #12342 (closed defect: fixed)
wxSpinCtrlDbl SetIncrement() and SetDigits() interaction
| Reported by: | steve_lamerton | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | GUI-all | Version: | 2.9-svn |
| Keywords: | wxSpinCtrlDbl increment | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Under GTK GetIncrement and SetIncrement have a few bugs:
1. SetIncrement clears the current page size if one has been set.
2. GetIncrement actually returns the page size and not the increment size.
3. Calling SetIncrement makes no difference as by default the spin control is created with a precision of 1 and so (for example) calling SetIncrement(0.1) and then SetValue(1.1) with just display 1. This can be worked around by the user calling SetDigits before but should probably be automated.
Attached is a patch for issues 1 & 2.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

