Quick Sign In:  

Forum: VirtualDJ Skins

Topic: textzone & wordwrap
locodogPRO InfinityModeratorMember since 2013
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.
 

Posted Fri 24 Feb 23 @ 10:15 pm
 

Posted Fri 24 Feb 23 @ 10:19 pm
locodogPRO InfinityModeratorMember since 2013
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]
 

Posted Fri 24 Feb 23 @ 10:43 pm
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>
 

Posted Sat 25 Feb 23 @ 3:04 am
locodogPRO InfinityModeratorMember since 2013
thanks, working well, probably one for djdad to add to the sdk, I didn't see it there.
 

Posted Sat 25 Feb 23 @ 5:43 am
Is this something that could be used with labels on custom buttons?
 

Posted Wed 01 Mar 23 @ 12:15 pm
locodogPRO InfinityModeratorMember since 2013
yes it can, textsize will have to be smaller to fit several lines in the zone.
 

Posted Wed 01 Mar 23 @ 12:37 pm