Spinbox

Report on GitHub

Numeric input field with increment and decrement controls, configured through lv_spinbox_set_range and lv_spinbox_set_digit_format.

Spinbox with plus and minus buttons

Step a fixed-point spinbox with two side buttons that repeat on hold.

A centered spinbox is set to five digits with a decimal point at position 2 and a range of -1000..25000. lv_spinbox_step_prev shifts the active digit. Two square buttons sized to the spinbox height sit on either side using LV_SYMBOL_PLUS and LV_SYMBOL_MINUS as background images. Their LV_EVENT_ALL handlers call lv_spinbox_increment or lv_spinbox_decrement on LV_EVENT_SHORT_CLICKED and LV_EVENT_LONG_PRESSED_REPEAT.

How is this guide?

Last updated on

On this page