Custom Scroll Buttons for Input Text In Lua

523 Views Asked by At

Please the problem i am facing now is that, i want to create two buttons to scroll text in an input box left and right using lua, especially when part of the text is hidden in the input box. I know this can be done using the left and right arrows on the keyboard, but what i need is how to do this in a custom way, using one button for left and one for right. Actually, i don't know if i should even say how to control cursor movement using two buttons in a form of a scrollbar. However, which ever way it's clear, how can i do this in lua language, after the buttons have been created please?

1

There are 1 best solutions below

0
On

Maybe take a look at IUP. It's dedicated Lua GUI library, and it certainly have functions like this.