[How to] How to get position of text-selection in the text-area widget?


When the lv_ta with text-selection mode is enable
and a user makes a text-selection by mouse/touching.

How to get the start and the end position of the text-selection?

Thank you.

What MCU/Processor/Board and compiler are you using?

What do you want to achieve?

What have you tried so far?

Code to reproduce

Screenshot and/or video

Use the label functions on the text area’s label. Docs

1 Like

Thank you very much.