question about #LEFT, #RIGHT

Report any Hollywood bugs here
Post Reply
peceha
Posts: 111
Joined: Tue Dec 13, 2016 9:39 am
Location: Poland

question about #LEFT, #RIGHT

Post by peceha » Mon Sep 18, 2017 5:26 pm

Hi,
please try this:

Code: Select all

TextOut(#CENTER,#TOP,"top")
TextOut(#CENTER,#TOP+8,"top+8")

TextOut(#RIGHT,#CENTER,"right")
TextOut(#RIGHT-80,#CENTER,"right-80")   ;shows nothing

TextOut(#CENTER,#BOTTOM-8,"bottom-8")
TextOut(#CENTER,#BOTTOM,"bottom")

TextOut(#LEFT,#CENTER,"left")
TextOut((#LEFT+80),#CENTER,"left+80")  ;shows nothing

WaitKeyDown("any")
why do lines (marked with comments in the above code) are not giving any result? (#TOP and #BOTTOM works as expected)

EDIT:
they work when I insert following line at the top of the code:

Code: Select all

setFontStyle(#EDGE,#RED,1)
and they do not work with:

Code: Select all

setFontStyle(#NORMAL)

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

Re: question about #LEFT, #RIGHT

Post by airsoftsoftwair » Thu Sep 21, 2017 4:09 pm

Nice spot! Fixed now, thanks for reporting!

Code: Select all

- Fix: Adding or subtracting values from #LEFT, #RIGHT, or #CENTER and passing this value as the x
  coordinate to TextOut() didn't always work

Post Reply