Kodi Community Forum
wrapmultiline in XMLDialog - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
--- Thread: wrapmultiline in XMLDialog (/showthread.php?tid=355517)



wrapmultiline in XMLDialog - Takezo36 - 2020-06-28

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/blob/master/plugin.program.extrabuttons/resources/skins/default/1080i/plugin-extrabuttons-comments.xml


RE: wrapmultiline in XMLDialog - ronie - 2020-06-28

nope, you're not doing things wrong.
<wrapmultiline> simply isn't supported for labels inside a list.


RE: wrapmultiline in XMLDialog - Takezo36 - 2020-06-28

(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?


RE: wrapmultiline in XMLDialog - ronie - 2020-06-28

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


RE: wrapmultiline in XMLDialog - Takezo36 - 2020-06-28

(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!


This forum uses Lukasz Tkacz MyBB addons.