emWin 5.22 SPINBOX strange behavior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

emWin 5.22 SPINBOX strange behavior

568 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by YOZHik on Thu Oct 24 07:28:58 MST 2013
Just switched from emWin 5.20 to emWin 5.22 and noticed that SPINBOX buttons increment the most significant digit in the number instead of the least significant one (yeah, I know it sounds silly but this is the way it behaves).

With 5.20 everything works as intended. The only things I changed in project are:
1. Included emWin_522_IAR650_M3_LE.a instead of emWin_520_IAR650_M3_LE.a
2. Included emWin522_header instead of emWin520_header

Does anyone else experience the same?
Labels (1)
0 Kudos
3 Replies

491 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Tue Oct 29 02:13:31 MST 2013
SPINBOX_DEFAULT_STEP is indeed a library compile-time constant, and cannot be changed from the application.

Regards,
Wouter
0 Kudos

491 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by YOZHik on Fri Oct 25 08:30:33 MST 2013
You are right. Surprisingly there is no indication of this new feature in the manual.

The problem with the most significant digit arises only when the property SetFocussable is set to zero for SPINBOX's embedded EDIT widget. If that EDIT widget is focusable, then the least significant digit is to be changed by default.

Wouter, one more question please: do you have any idea how to manipulate SPINBOX_DEFAULT_STEP parameter? Or maybe it is available only in source code?

Thanks
0 Kudos

491 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Fri Oct 25 04:25:13 MST 2013
Hi,

Looks like the behavior of the spinbox was changed in V5.22. You can now select which digit you want to increment/decrement by touching that digit. Default the least-significant digit should be selected, but from your description it sounds like the most-significant digit is selected. Can you try selecting the least-significant digits first, then hit increment/decrement?

Regards,
Wouter
0 Kudos