home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- PROCEDURE Inkey_pr
-
- PARAMETERS p, l, v
-
- PRIVATE _poprow, _popcol, _ocolor, _iscr, _irow, _icol, _dummy
-
- _poprow = ROW()
- _popcol = COL()
- _ocolor = SETCOLOR()
- _iscr = ""
- _iscr = SAVESCREEN(5,0,14,79)
- SET CURSOR OFF
- SETCOLOR(IF(ISCOLOR() .AND. !(IF(TYPE("scrmono")="U", .T., scrmono)), "W/B", SETCOLOR()))
- IF TYPE("scrcursor") = "U"
- scrcursor = .T.
- ENDIF
- INKEY_SCR()
- STORE 7 TO _irow, _icol
- DO WHILE .T.
- IF _irow > 11
- CLEAR_AREA(6,4,13,76)
- STORE 7 TO _irow, _icol
- @ _irow, _icol SAY "ASCII value is " + LTRIM(TRIM(STR(_dummy)))
- _icol = 32
- ENDIF
- @ _irow, _icol SAY "<key>"
- _dummy = INKEY(0)
- IF _dummy = 27
- EXIT
- ENDIF
- @ _irow, _icol SAY "ASCII value is " + LTRIM(TRIM(STR(_dummy)))
- _icol = _icol + 25
- IF _icol > 60
- _irow = _irow + 1
- _icol = 7
- ENDIF
- ENDDO
- SETCOLOR(_ocolor)
- SET CURSOR (scrcursor)
- RESTSCREEN(5,0,14,79,_iscr)
- @ _poprow, _popcol SAY ""
-
- *********************
-
- PROCEDURE Inkey_scr
-
- PRIVATE _qaz
-
- IF TYPE("scrleft_1") = "U"
- scrleft_1 = "Steve Straley's ToolKit"
- scrleft_2 = "Version 2.0"
- ENDIF
- @ 5,4 SAY "╔══ Inkey Values ════════════════════════════════════════════════════════╗"
- @ 6,4 SAY "║ &scrleft_1. / &scrleft_2."
- @ ROW(),COL() SAY REPLICATE(CHR(32), 72 - LEN(scrleft_1) - LEN(scrleft_2) - 4)
- @ ROW(),COL() SAY "║"
- FOR _qaz = 7 TO 12
- @ _qaz, 4 SAY "║ ║"
- NEXT
- @ 13,4 SAY "╚════════════════════════════════════════════════════════════════════════╝"
- @ 14,00 SAY MESS_CENT("Press Any key for Value / ESC to Quit ")
- IF ISCOLOR() .AND. !(IF(TYPE("scrmono")="U", .T., scrmono))
- SET COLOR TO W/B
- ENDIF
-
- * End of File