problem with TextOut()

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

problem with TextOut()

Post by peceha » Wed Feb 15, 2017 8:06 pm

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: 2482
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: problem with TextOut()

Post by airsoftsoftwair » Sat Feb 18, 2017 7:15 pm

Right, good spot. I'll fix this.

User avatar
airsoftsoftwair
Posts: 2482
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: problem with TextOut()

Post by airsoftsoftwair » Mon Feb 20, 2017 8:16 pm

Fixed now. As a workaround you can just use

Code: Select all

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

Post Reply