feat(spinbox ) add function to set cursor to specific position (#2314)
* Spinbox set cursor to specific position (funct.) * changed exp10 to lv_pow(10 * Update lv_spinbox.c resolved indentation * Update spinbox.md Added lv_spinbox_set_pos description Co-authored-by: Sebastian Dyker <sebastian.dyker@walther-systemtechnik.com>
This commit is contained in:
@@ -20,6 +20,8 @@ The parts of the Spinbox are identical to the [Text area](/widgets/core/textarea
|
||||
|
||||
`lv_spinbox_set_step(spinbox, 100)` sets which digits to change on increment/decrement. Only multiples of ten can be set, and not for example 3.
|
||||
|
||||
`lv_spinbox_set_pos(spinbox, 1)` sets the cursor to a specific digit to change on increment/decrement. For example position '0' sets the cursor to the least significant digit.
|
||||
|
||||
### Format
|
||||
|
||||
`lv_spinbox_set_digit_format(spinbox, digit_count, separator_position)` sets the number format. `digit_count` is the number of digits excluding the decimal separator and the sign.
|
||||
|
||||
Reference in New Issue
Block a user