Quick Sign In:  

Forum: VirtualDJ Skins

Topic: How do I use MULTILINE ="yes"...?
I'm creating a button which will display text and wish to show it on two lines... e.g. CLEAR PLAYLIST.

Even though multiline is set to YES, the text appears on one line.
The only way I can get it to work is to include spaces between the text to exceed the size of the button. This results in squashed lettering and looks rubbish! I have tried \n but it doesn't work...
 

Posted Sat 06 Jul 24 @ 1:12 pm
locoDogPRO InfinityModeratorMember since 2013
Use textaction, get_text will parse \n correctly.

<button class="button_main" x="+69+69" y="+0" action="sync" textaction="get_text 'SYNC\nTEST'" localize="true" weight=""/>
 

Posted Sat 06 Jul 24 @ 1:36 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
I believe it should work with format="LINE 1\nLINE2" too, but definitely not with text=""
 

Posted Sat 06 Jul 24 @ 1:43 pm
Perfect, Thanks!
I had to add a textaction placeholder to my button define too, but it works :)
 

Posted Sat 06 Jul 24 @ 1:47 pm