Scrollable Textbox/Editbox

Corak55

25-10-2014 15:48:29

Dear Orgeans,

I'd like to set up a kind of Textbox with a given height and width (let's say 200 x 400px). When the content extends the dimensions I'd like to have the Widget scrollable. One of my approaches was like this:

<Widget type="EditBox" skin="EditBoxStretch" position="10 10 200 400">
<Property key="TextAlign" value="Default"/>
<Property key="MultiLine" value="true"/>

<Widget type="ScrollBar" skin="ScrollBarV" position="...
</Widget>
</Widget>


Whatever I tried, I wasn't able to link the Scrollbar with the content of the Widget. Any ideas or maybe a workaround?

Kind regards,
Corak

Altren

25-10-2014 20:51:17

There is built in scroll bar in EditBox, so no need to add your own.

Corak55

25-10-2014 21:16:29

There is built in scroll bar in EditBox, so no need to add your own.Oh, I didn't know. How to use it - do you have a sample code? I can't find one in the demo files.

Altren

25-10-2014 22:31:34

Just use EditBix skin and add more text to see it. No additional calls or settings needed.
Also there are few methods to show/hide scrolls (by default they are visible only when there is not enough spece)