Post Reply 
TEXTOUT_P & TEXTOUT with Left, Right & Centre Justification
08-23-2023, 01:08 AM (This post was last modified: 08-23-2023 01:23 AM by Insoft.)
Post: #1
TEXTOUT_P & TEXTOUT with Left, Right & Centre Justification
I have encountered an issue concerning text alignment. I would appreciate it if anyone has insights into the proper handling of left, right, and center justification. Despite my efforts, I have been unable to locate comprehensive information on this topic. At present, I have resorted to using a makeshift solution, but I am eager to explore a more refined approach. Your assistance is greatly valued.

eg.
Code:
X:=TEXTOUT_P("Center my TEXT", 0, 240, RGB(255,0,0));
TEXTOUT_P("Center my TEXT", 160-X/2, 120, RGB(255,0,0));
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
TEXTOUT_P & TEXTOUT with Left, Right & Centre Justification - Insoft - 08-23-2023 01:08 AM



User(s) browsing this thread: 1 Guest(s)