HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

question about dialog box buttons

02-18-2003, 12:28 AM#1
badomen
i want to make a button in a dialog box with the town name then under it info

eg
...........BEACH.......
A place with people


all in one button

is this possible?
02-18-2003, 12:31 AM#2
DaKaN
only 1 line of text on a dialog button allowed
02-18-2003, 01:49 AM#3
MicrosoftXP
hmm u can make more but it looks ugly.

looks like some text w/ a button midway through your paragraph.

could make buttons which dont do anything for every sentence, but keep um short.
02-18-2003, 03:57 PM#4
badomen
thanks

( i posted in wrong topic)
02-18-2003, 04:01 PM#5
BoddoZerg
You can fit two lines of text on a dialog button pretty comfortably.

By the way, does anyone know how to display multiple lines of text using a JASS string? Convert to Custom Text turns everything into "TRIGSTR_XXX". Is there something like %n or |n that can be used?
02-18-2003, 06:35 PM#6
Ari
It sounds silly, but I'm fairly sure you just have one line of code on two lines:

make a button with text ("a button
on more than one
line")

In this one case, jass is happy with a line of code going on to more than one line.

I'm pretty sure in this one case, white space is indeed ignored. |n is for displayed messages, but I believe, if memory serves me, it will not work inside buttons or titles.
02-18-2003, 06:37 PM#7
DaKaN
you can make as many lines as you want, but the button is a fixed size it will not make its self bigger to support 2 lines. I also belive jass ignores "white" space in the code, but not 100% sure i think |n is the new line command