1194
Appendix A: System Routines — Windows
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinStr
(continued)
Example:
The above image was created from the example below.
short i;
WinClr(&appW);
WinFont( &appW, F_8x10 );
for (i = 5; i <= 45; i += 10)
WinLine( &appW, MakeWinRect( 0, i, 90, i ) );
WinAttr( &appW, A_NORMAL ); WinMoveTo( &appW, 16, 0 ); WinStr( &appW, "NORMAL" );
WinAttr( &appW, A_REPLACE ); WinMoveRel( &appW, -48, 10 ); WinStr( &appW, "REPLACE" );
/* x parm to WinMoveRel is negative since current pen position is at end of previous
string */
WinAttr( &appW, A_REVERSE ); WinStrXY( &appW, 16, 20, "REVERSE" );
WinAttr( &appW, A_SHADED ); WinStrXY( &appW, 16, 30, "SHADED" );
WinAttr( &appW, A_XOR ); WinStrXY( &appW, 16, 40, "ATTR XOR" );