new line character in button text

Started by , Mon 01/08/2011 14:24:31

Previous topic - Next topic

bicilotti

So, let's create a GUI and a test button (call it buttonFoo)

placing this in game_start or rep_ex:

ButtonFoo.Text = String.Format("This is a test [] dfascsadc");

I'd expect to see a new line somewhere, instead I get those silly square brackets.

Is this proper behaviour? Any workaround?

arj0n


bicilotti


Khris

I guess AGS doesn't support line breaks in button texts.

arj0n


monkey0506

As a workaround you could put a non-clickable label on top of the button with the appropriate text. Unless you're moving or resizing the controls a lot, it shouldn't be a big issue (not as friendly as if the buttons allowed line-breaks, but just not hard to get around ;)).

bicilotti

Quote from: +monkE3y_05_06+ on Mon 01/08/2011 15:30:37
As a workaround you could put a non-clickable label on top of the button with the appropriate text. Unless you're moving or resizing the controls a lot, it shouldn't be a big issue (not as friendly as if the buttons allowed line-breaks, but just not hard to get around ;)).

I don't think you've fully appreciated the fact that
Spoiler
we italians are lazy slobs
[close]

I'll use a label, but that's seems pretty awkard to me, if not a bug. Thankee!

SMF spam blocked by CleanTalk