| DrawStr | Function (ROM Call 0x1A9)

graph.h

void DrawStr (short x, short y, const char *str, short Attr);

Draws a string.

DrawStr draws a string str at a specific (x, y) location. See DrawChar for a description of attribute Attr.
Note: Too many people ask me how to draw a content of an integer variable (for example) instead of a string. Although this question is answered in the Frequently Asked Question list, I received a suggestion that it would be better if explained here. Well. You need to use sprintf to convert a non-string variable to a string. For example:

    int x, y;
    char buffer[50];
    ...
    sprintf (buffer, "%d + %d = %d", x, y, x + y);
    DrawStr (0, 0, buffer, A_NORMAL);

Uses: EV_runningApp, OO_GetAppAttr, sf_width, TIOS_abs
Used by: MenuKey, MenuOff, MenuOn, MenuTopRedef, MenuTopSelect, printf_xy, DrawWinBorder, ROM Call 0x421

Deprecated alias: DrawStrXY