QB / QB64 Discussion Forum
Other Subforums, Links and Downloads
Respond to this message
Return to Index
Converting text coordinates to graphic coordinates
Posted Dec 5, 2009 4:36 PM
SCREEN 12 uses text block sizes of 8 pixel columns by 16 pixel rows normally.
GraphicRow = (Textrow - 1) * 16 ' this gives you the top pixel of the row.
GraphicCol = (TextCol - 1) * 8 ' starting pixel
UnderlineRow = GraphicRow + 15 ' bottom of text row where most letter characters are not placed. Use the start position to draw the line going 8 pixels for each character using LEN of text.
PS: Single underline is CHR$(196), but now you are double spacing rows.
You are not logged in
Provides additional benefits such as notifications, signatures, and user authentication.
Also send responses to my email address