Page 1 of 1

problem with TextOut()

Posted: Wed Feb 15, 2017 7:06 pm
by peceha
Hello,

please try following:

Code: Select all

TextOut(#CENTER,#CENTER+10,"          test          ")
TextOut(#CENTER,#CENTER+30,"          test          ",{color=#RED})  ; this line is problematic
TextOut(#CENTER,#CENTER+50,".         test         .",{color=#RED})
WaitKeyDown("any")
looks like there is a problem with second textOut() line - whenever a table with a color is included, the text gets truncated when there are spaces at the end of this text.

Thanks.

Re: problem with TextOut()

Posted: Sat Feb 18, 2017 6:15 pm
by airsoftsoftwair
Right, good spot. I'll fix this.

Re: problem with TextOut()

Posted: Mon Feb 20, 2017 7:16 pm
by airsoftsoftwair
Fixed now. As a workaround you can just use

Code: Select all

TextOut(#CENTER,#CENTER+30,"          test          ",{color=#RED, Align = #LEFT})
instead.