emWin 5.22 SPINBOX strange behavior

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

emWin 5.22 SPINBOX strange behavior

1,326件の閲覧回数
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?
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,249件の閲覧回数
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 件の賞賛
返信

1,249件の閲覧回数
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 件の賞賛
返信

1,249件の閲覧回数
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 件の賞賛
返信