home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
CLIPPER
/
SCRNUZ
/
MEMERASE.PRG
< prev
next >
Wrap
Text File
|
1992-11-12
|
2KB
|
53 lines
*----------------------------------------------------------------------------
*
* Program Name: MEMERASE.PRG Copyright: EDON Corporation
* Date Created: 02/23/91 Language: Clipper S'87
* Time Created: 09:32:35 Author: Ed Phillips
* Description: Erase Block function for Memscrn.prg
*----------------------------------------------------------------------------
PROCEDURE EraseBlock
PRIVATE r, c, key, wcolor, winbuff, top, left, bottom, right
PRIVATE scrnbuf
scrnbuf = Savescreen(1,0,24,79)
r = Row()
c = Col()
* wcolor = Setcolor(c_statln1)
* @ 0,0 SAY 'ERASE Pending...'
* Setcolor(wcolor)
@ r,c SAY '■'
top = r
left = c
Gotoxy(r,c)
DO WHILE .T.
StatLine('ERASE Pending...')
key = Inkey(0)
IF key < 32
IF key = 27 && escape
Restscreen(1,0,24,79,scrnbuf)
@ top,left SAY ''
EXIT
ENDIF
DO CtrlKey
ELSEIF key >= 271
DO AltKey
ELSE
IF Chr(key) $ 'Ee'
bottom = Row()
right = Col()
DO SwapChk
Scroll(top,left,bottom,right,0)
changed = .t.
EXIT
ENDIF && IF Chr(key) $ 'Bb'
ENDIF && IF key < 32
ENDDO && DO WHILE .T.
RETURN
* EOF: Memerase.prg