As the title mention, I want to click a button to add the scroll box.
The scroll box is successful, but I don’t know how to let the text show in the scroll box can display the row number.
Like this figure:
Looks fine, grab a text block and set its text. Or, the way I’d do it:
• Expose a text variable on spawn in the user widget you create dynamically, make it Instance Editable
• in the same widget’s Construct, set the text block’s text using that variable
• when a widget is spawned, feed it text via the exposed text var
You іуе text to the first only widget each time. You should do this with the newly added widget. Create a set text function in your custom widget and call it after the widget is created.
I try this way. Still fail
I have two question.
Where I define my text content? Is there? So I don’t need to add a new input in custom event, right?
Second question, I can’t connect in there.
You just build one user interface file, right?
But if I don’t want to add the whole content to the scroll box.
How can I do?
My original method have two user interface file.
One is Mainfile, it contain scroll box panel.
Another is the content, which I want to add to the scroll box.
What can I do?