Send EVT_SPIN_UP/DOWN events also when wxSpinButton value wraps around (wxOSX)

EVT_SPIN events should be sent at every value change, not only if it's changed by +/- 1.

See #17957.
This commit is contained in:
Artur Wieczorek
2017-09-22 15:28:12 +02:00
parent 3d5e84b229
commit a9843a7492
2 changed files with 18 additions and 21 deletions

View File

@@ -78,11 +78,13 @@ public:
@beginEventEmissionTable{wxSpinEvent}
@event{EVT_SPIN(id, func)}
Generated whenever an arrow is pressed.
Generated whenever pressing an arrow changed the spin button value.
@event{EVT_SPIN_UP(id, func)}
Generated when left/up arrow is pressed.
Generated whenever pressing left/up arrow changed the spin button
value.
@event{EVT_SPIN_DOWN(id, func)}
Generated when right/down arrow is pressed.
Generated whenever pressing right/down arrow changed the spin
button value.
@endEventTable
Note that if you handle both SPIN and UP or DOWN events, you will be notified