Hi! I just started using SLS today so I know very little. I created a numpad using buttons and I wanted to create events for each. Basically what I want is when I press button1, it should display 1 on the textarea widget. I want the buttons to function the same as the default keyboard widget. Is there a way to do that in SLS?
Hi, unfortunately, this real-time input functionality cannot be implemented directly within SquareLine Studio itself. The textarea widget doesn’t currently support dynamic input updates from button presses within the SLS environment.
To accomplish what you’re looking for, you’ll need to:
Export your project from SquareLine Studio first
Then add your own custom code to the exported files to handle the numpad button interactions
When creating your design, you can set up the foundation by:
Adding a “Call Function” event to each of your numpad buttons
These function calls will serve as placeholders that you’ll implement in your own code after export
This approach requires some custom coding outside of SquareLine Studio, but it gives you full control over how the numpad interacts with your textarea widget.