How to controlling Textarea whith BTN

What do you want to achieve?

I want to move the Textarea left and right with 2 buttons.

What have you tried so far?

SLS set event with button / Textarea settings

Screenshot or video

I do not read&write English well.
I rely on Google Translate to write.
Thx.

Others

  • SquareLine Studio version:
  • Operating system:
  • Target hardware:

By “move the Textarea” do you mean changing the position (X,Y coordinates) or the position of the cursos?

It means cursor.

There is no option for it in SquareLine but it really should be.

We will add it in the next release but until that you can add a “Call function” event to the buttons. The functions will be generated in ui_events.c and you can use lv_textarea_cursor_left/right(obj) there.

oh, thank you

The question has been resolved.!

1 Like