Announcement

Collapse
No announcement yet.

Positioning Text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Positioning Text

    Is it possible to position text with x y coordinated by chance?

  • #2


    Yes it is.
    Here al little example how I position text for my GPS info.
    The gfx_MoveTo(45,10); sets the point where the text starts at pixel x=45 and y=10

    HTML Code:
    func UpdateGPSInfo()
    txt_Set(TEXT_OPACITY, OPAQUE);
    txt_Set(TEXT_COLOUR,GREEN);
    txt_Set(FONT_SIZE, FONT3);
    gfx_MoveTo(45,10);
    to(GFX);putstr(sGPSLat);
    gfx_MoveTo(45,23);
    to(GFX);putstr(sGPSLon);
    endfunc

    Comment

    Working...
    X