Page 1 of 1

question about #LEFT, #RIGHT

Posted: Mon Sep 18, 2017 5:26 pm
by peceha
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)

Re: question about #LEFT, #RIGHT

Posted: Thu Sep 21, 2017 4:09 pm
by airsoftsoftwair
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