Se Connecter:     


Forum: VirtualDJ Skins

Sujet: textzone & wordwrap
does textzone offer wordwrap? I half remember it does but I can't find it.
I've got lots of vertical space, but the string is a long single line.

making height bigger seems to recentre the text. but doesn't wrap.
 

Posté Fri 24 Feb 23 @ 10:15 pm
 

thanks for the reply but the string is a single line. [it's a string variable]
I'm working with a user built string, \n after every "user building block" would be lots of lines, bigger than what I have on the Y and wasting available X [my space is X 1000 * Y 100, with text size 16]
 

Add multiline="yes" on your <text /> element (not the <textzone />)
It also works on buttons.
<textzone>
<text fontsize="12" align="center" multiline="yes" color="white" action="get_var 'mylongvar'"/>
</textzone>
 

thanks, working well, probably one for djdad to add to the sdk, I didn't see it there.
 

Is this something that could be used with labels on custom buttons?
 

yes it can, textsize will have to be smaller to fit several lines in the zone.