Ingreso rápido:  

Forum: VirtualDJ Skins

Tema: 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.
 

Mensajes Fri 24 Feb 23 @ 10:15 pm
 

Mensajes 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]
 

Mensajes 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>
 

Mensajes 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.
 

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

Mensajes 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.
 

Mensajes Wed 01 Mar 23 @ 12:37 pm