home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
CLIPPER
/
SCRNUZ
/
MEMCOPY.PRG
< prev
next >
Wrap
Text File
|
1992-11-12
|
3KB
|
83 lines
*----------------------------------------------------------------------------
*
* Program Name: MEMCOPY.PRG Copyright: EDON Corporation
* Date Created: 02/23/91 Language: Clipper S'87
* Time Created: 08:40:21 Author: Ed Phillips
* Description: Replicate a block, for memscrn.prg
*----------------------------------------------------------------------------
PROCEDURE CopyBlock
PRIVATE r, c, key, wcolor, winbuff, top, left, bottom, right, corner
PRIVATE width, height, scrnbuff
scrnbuff = Savescreen(1,0,24,79)
r = Row()
c = Col()
* wcolor = Setcolor(c_statln1)
* @ 0,0 SAY 'COPY Pending...'
* Setcolor(wcolor)
corner = Savescreen(r,c,r,c)
@ r,c SAY '■'
top = r
left = c
Gotoxy(r,c)
BEGIN SEQUENCE
DO WHILE .T.
StatLine('COPY Pending...')
key = Inkey(0)
IF key < 32
IF key = 27 && escape
Restscreen(top,left,top,left,corner)
BREAK
ENDIF
DO CtrlKey
ELSEIF key >= 271
DO AltKey
ELSE
IF Chr(key) $ 'Cc'
bottom = Row()
right = Col()
* wcolor = Setcolor(c_statln1)
* @ 0,0 SAY 'COPY BLOCK...'
* Setcolor(wcolor)
@ bottom,right SAY ''
Restscreen(top,left,top,left,corner)
DO SwapChk
winbuff = Savescreen(top,left,bottom,right)
is_scrap = .t.
r = top
c = left
width = right - left
height = bottom - top
@ r,c SAY ''
DO WHILE .T.
StatLine('COPY BLOCK...')
key = Inkey(0)
IF key = 27
changed = .t.
BREAK
ENDIF && IF key = 27
DO CtrlKey
IF Chr(key) $ 'Cc'
scrnbuff = Savescreen(1,0,24,79)
ENDIF && IF Chr(key) $ 'Cc'
Restscreen(1,0,24,79,scrnbuff)
Restscreen(r,c,r+height,c+width,winbuff) && copied block
ENDDO && DO WHILE .T.
ENDIF && IF Chr(key) $ 'Bb'
ENDIF && IF key < 32
ENDDO && DO WHILE .T.
END
RETURN
* MEMCOPY.PRG