Kodi Community Forum

Full Version: wrapmultiline in XMLDialog
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i'm building an XML Dialog and got a label in a list which i want wrap lines. so i set the wrapmultiline param to true in the xml, but it doesn't work for me.

<control type="label">
                        <left>5</left>
                        <top>90</top>
                        <height>220</height>
                        <width>1720</width>
                        <aligny>top</aligny>
                        <align>left</align>
                        <autoscroll>false</autoscroll>
                        <wrapmultiline>true</wrapmultiline>
                        <textcolor>white</textcolor>
                        <label>$INFO[ListItem.Label2]</label>
                    </control>
Am i doing something wrong here?
This is my full xml file 
https://github.com/Takezo36/kodistuff/bl...mments.xml
nope, you're not doing things wrong.
<wrapmultiline> simply isn't supported for labels inside a list.
(2020-06-28, 19:40)ronie Wrote: [ -> ]nope, you're not doing things wrong.
<wrapmultiline> simply isn't supported for labels inside a list.
Thanks for the clarification.
Damn...
Is there a good alternative approach to get a multiline label in a list, aside from defining line length myself and adding \n's?
Aside for this, is autoscroll working inside of a list?
perhaps a textbox might work for you?

<autoscroll> is not a valid tag for labels controls (either inside or outside a list),
you need to use <scroll> instead.
https://kodi.wiki/view/Label_control
(2020-06-28, 21:18)ronie Wrote: [ -> ]perhaps a textbox might work for you?

<autoscroll> is not a valid tag for labels controls (either inside or outside a list),
you need to use <scroll> instead.
https://kodi.wiki/view/Label_control
Yes it does! Thank you very much! 
I don't know why i haven't seen textbox...
Also thanks for pointing out the scroll vs autoscroll thing!