problem with TextOut()

Discuss any general programming issues here
Post Reply
peceha
Posts: 111
Joined: Tue Dec 13, 2016 8:39 am
Location: Poland

problem with TextOut()

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: problem with TextOut()

Post by airsoftsoftwair »

Right, good spot. I'll fix this.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: problem with TextOut()

Post by airsoftsoftwair »

Fixed now. As a workaround you can just use

Code: Select all

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