Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tft.text() question.
#1
The wiki says that center, right and bottom can be used as values for positioning the text relative to the x,y position.
I don't know how the syntax should work.
For example how would I use this to center text around the (80,30) pixel position?
Can anyone provide me with some examples?
Thanks,
Leon
Reply
#2
CENTER, RIGHT and BOTTOM positions the text relative to the current display window (which is initially set to screen size).
If you need to center from the different position on screen than the screen center, set the new display window using tft.setwin() function.
Threre are other functions for manipulating display window, see the Wiki.
Reply
#3
OK. I think I got it.
I'll give it a try
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)