cmd_pttext Function (ROM Call 0x375)

AMS 1.01 or higher bascmd.h

void cmd_pttext (CESI string, CESI x, CESI y);

Executes TI-Basic 'PtText' command.

cmd_pttext displays the Graph Screen and places a character string on the screen at the pixel nearest to the window coordinates (x,y), which are relative to the current window settings (you can change them using the "Window Editor" application, or directly by storing values in system variables like "xmin", using the VarStore function). The parameters x and y should point to integer or floating point items which determine the coordinates, and the parameter string should point to the tag of a string expression to be displayed.

See also cmd_pxltext, which uses pixel coordinates instead of window-relative ones, and DrawStr for much faster low-level string drawing (independently of the Graph Screen).


Uses: GetValue, gr_active, ForceFloat, GraphActivate, XCvtFtoP, YCvtFtoP, WinAttr, WinStrXY


See also: cmd_pxltext, DrawStr