home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP17_1.PRG ⌐ª
- *⌐ª Function: Σ»└└╝⌠▓├░σ╡──┌╚▌╡─╖╢└². ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
-
- STORE 1 TO windtop
- STORE _CLIPTEXT TO ctext
- * ╜½┤µ╖┼╘┌ _CLIPTEX ╓╨╡─╝⌠▓├░σ─┌╚▌┤ó┤µ╙┌▒Σ┴┐ ctext ╓╨
-
- IF LEN(ctext) > 2100
- * ╜½ ctext ╓╨╡─╝⌠▓├░σ─┌╚▌╔Φ╢¿│╔┤░┐┌┐╔╚▌─╔╡─┤≤╨í
- STORE SUBSTR(ctext, 1, 2100) TO ctext
- ENDIF
- STORE STRTRAN(ctext, CHR(9), SPACE(4), 1) to ctext && ▓σ╚δ tabs
-
- * ╢¿╥σ╥╗╕÷┤░┐┌: framewin ║═Σ»└└╝⌠▓├░σ╡──┌╚▌╡─┤░┐┌: clipboard
- DEFINE WINDOW framewin FROM 1,-1 TO 25,80 ;
- TITLE "<< ╝⌠▓├░σ Clipboard >>" CLOSE COLOR SCHEME 8
- DEFINE WINDOW clipboard FROM -1,-1 TO 25,80 COLOR SCHEME 5
-
- ACTIVATE WINDOW framewin
- ACTIVATE WINDOW clipboard IN framewin
- * ╘┌┤░┐┌ framewin ╓╨┤≥┐¬ clipboard ┤░┐┌
-
- * ╘┌┤░┐┌ clipboard ╓╨╧╘╩╛╝⌠▓├░σ╡──┌╚▌
- IF EMPTY(ctext)
- @ 0,0 SAY " ╝⌠▓├░σ (Clipboard) ╓╨├╗╙╨╚╬║╬─┌╚▌, ╩╟┐╒╡─!"
- ELSE
- IF AT(chr(13),ctext) = 0 && ├╗╙╨╗╪│╡╖√ (CR)
- @ 0,0 SAY ctext && ╧╘╩╛╝⌠▓├░σ╡──┌╚▌
- ELSE
- STORE AT(CHR(13), ctext, 1) to crpos1 && ╡┌╥╗╕÷╗╪│╡╖√ (CR)
- @ 0,0 SAY SUBSTR(SUBSTR(ctext, 1, crpos1 - 1), 1, 80)
- FOR lineno = 1 to 24
- STORE AT(CHR(13), ctext, lineno + 1) to crpos2 && ╧┬╥╗╕÷╗╪│╡╖√(CR)
- @ lineno,0 SAY SUBSTR(SUBSTR(ctext, crpos1 + 1, ;
- (crpos2 - crpos1) - 1),1,80)
- STORE crpos2 to crpos1
- NEXT
- ENDIF
- ENDIF
- DO WHILE .T.
- keyval = INKEY(20,"MH")
- * ╝α▓Γ╦∙░┤╡─░┤╝ⁿ, ╩≤▒Ω╗≥╡╚┤² 20 ├δ
- IF (keyval = 24 OR keyval = 4) AND BETWEEN(windtop,1,23)
- * ╚⌠░┤╧┬╥╞╝ⁿ╗≥╙╥╥╞╝ⁿ
- MOVE WINDOW clipboard BY -1,0
- * ╝⌠▓├░σ clipboard ┤░┐┌╔╧╛φ╥╗╨╨
- windtop = windtop + 1
- ENDIF
- IF (keyval = 3) AND BETWEEN(windtop,1,17)
- * ╚⌠░┤ PgDn ╝ⁿ
- MOVE WINDOW clipboard BY -20,0
- * ╝⌠▓├░σ clipboard ┤░┐┌╔╧╛φ╥╗╥│ (20╨╨)
- windtop = windtop + 20
- ENDIF
- IF (keyval = 5 OR keyval = 19) AND BETWEEN(windtop,2,24)
- * ╚⌠░┤╔╧╥╞╝ⁿ╗≥╫≤╥╞╝ⁿ
- MOVE WINDOW clipboard BY 1,0
- * ╝⌠▓├░σ clipboard ┤░┐┌╧┬╛φ╥╗╨╨
- windtop = windtop - 1
- ENDIF
- IF (keyval = 18) AND BETWEEN(windtop,8,24)
- * ╚⌠░┤ PgUp ╝ⁿ
- MOVE WINDOW clipboard BY 20,0
- * ╝⌠▓├░σ clipboard ┤░┐┌╧┬╛φ╥╗╥│ (20╨╨)
- windtop = windtop - 20
- ENDIF
- * ╚τ╣√░┤╧┬╡─▓╗╩╟: ╧┬╥╞╝ⁿ,╔╧╥╞╝ⁿ,╫≤╥╞╝ⁿ,╙╥╥╞╝ⁿ,PgDn ╝ⁿ,PgUp ╝ⁿ
- * ╓╨╓«╥╗╘≥╣╪▒╒┤░┐┌═╦│÷
- IF keyval <> 5 AND keyval <> 19 AND keyval <> 24 AND keyval <> 4 ;
- AND keyval <> 3 AND keyval <> 18
- CLEAR WINDOWS
- SET TALK ON
- EXIT
- ENDIF
- ENDDO
- RETURN