Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locate command on the ttf graphical screens
#2
Locate command moves character cell: lines/rows and columns, according to font you use, 8x16 pixels character cell size in pixels for default.

If your font is 15X20 the screen will be divided by 20 pixels going down for row and width divided by 15 for columnns numbers (assuming a graphics <> 0 screen).

To go pinpoint pixel by pixel use _PrintString(x_pix, y_pix), text$ in graphics screen =non 0 for top left location of first print cell.
Code: (Select All)
Screen 12

_PrintString (10, 15), "Hello"
Locate 10, 15: Print "World"

   

LOCATE came from original BASIC back in days where everything was printed on paper so locating a print item made sense to find print row first then tab over to print column, in graphics all is x, y pixels and that came when screens were being used in place of paper for output.
b = b + ...
Reply


Messages In This Thread
RE: Locate command on the ttf graphical screens - by bplus - 03-09-2025, 02:41 PM



Users browsing this thread: 2 Guest(s)