System: maOS 10.12.6
wxWidgets version: 3.1.1, and current master (from github)
The problem is that wxSpinCtrlDouble doesn't fire wxEVT_SPINCTRLDOUBLE event in this situations on mac:
1) When ENTER pressed
2) When you delete some CHARS
It can be reproduced in the samples/widgets example:
1) ./widgets
2) Select Spin
3) Put Process Enter checkbox
4) In wxSpinCtrlDouble type 7.0001
What we need is "Spin control value chanded, now 7.0001" on enter pressed.
This i only appears when focus changed.
OK
5) Focus was changed ;)
6) Focus again on wxSpinCtrlDouble
7) Try to remove one zero from 7.0001 with BACKSPACE or DEL
8) Change focus (Do you see wxEVT_SPINCTRLDOUBLE event message?)
9) Focus again and try to remove one zero from 7.001 with BACKSPACE or DEL
10) Change focus (Do you see wxEVT_SPINCTRLDOUBLE event message? NO)
11) Focus again and try to remove one zero from 7.01 with BACKSPACE or DEL
12) Change focus (Do you see wxEVT_SPINCTRLDOUBLE event message? NO)
..
13) try to delete everything from the control and change focus. Do you see the number in the control?
On Windows and Linux it is working as expected.
1) ENTER key fires wxEVT_SPINCTRLDOUBLE if the value was changed
2) DEL, BACKSPACE -> change focus is OK
KOS
wxSpinCtrl and wxSpinCtrlDouble on macOS
Re: wxSpinCtrl and wxSpinCtrlDouble on macOS
Hi,
Did you modify the sample in any way?
How exactly did you configure wx?
You can try to file a bug on trac.wxwidgets.org and wait for it to be resolved.
Before doing that you should check the latest sources of the library - it is possible it is fixed already.
Also, keep in mind this forum is for users by users - core developers are not coming here.
The best place to talk to them is thru the ML.
Thank you.
Did you modify the sample in any way?
How exactly did you configure wx?
You can try to file a bug on trac.wxwidgets.org and wait for it to be resolved.
Before doing that you should check the latest sources of the library - it is possible it is fixed already.
Also, keep in mind this forum is for users by users - core developers are not coming here.
The best place to talk to them is thru the ML.
Thank you.