home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Aktiv 1
/
CDA1_96.ISO
/
clipper
/
saver.prg
< prev
next >
Wrap
Text File
|
1996-01-06
|
2KB
|
45 lines
*: Placed in the public domain by Dougie Brown, FireCrest Systems Ltd. UK
*: Written at 02.00 hrs 12/12/1995 - God bless her.
*: Written as a modular function, so un-rem the first & last lines if you
*: want to incorporate it into your programs.
*: The effect is a scrolling screen which moves down and to the left. It
*: eventually fills up with Smiley Faces with their hands behind their heads.
*: If this is plainly inappropriate for your environment, just remove the
*: lines as indicated below.
*: Function Screen_Saver
set cursor off
keyboard chr(1)
save screen to org_screen
setcolor("w+/r")
@ 22,23 say " SCREEN SAVER ACTIVE - press a key "
column = 0
internal_counter = 1
do while .T.
if lastkey() > 1
exit
endif
portion1 = savescreen(0,column,24,column) && 0,0,24,0
portion2 = savescreen(24,column+1,24,column) && 24,1,24,0
portion3 = savescreen(0,0,24,0)
restscreen(0,column,0,column,portion2) && 0,1,0,1
restscreen(1,column,25,column,portion1) && 1,0,25,0
restscreen(1,79,25,79,portion3)
inkey(.034)
column = iif(column = 79, 0, column+1)
internal_counter = iif(column = 79, internal_counter+1, internal_counter)
*: If you don't like the Smiley Face with the hands behind the head,
*: simply delete the next 5 lines....
if internal_counter > 2
internal_counter = 0
setcolor("w+/n")
@ 6,val(subs(time(),7,2)) say "<"+chr(2)+">"
endif
enddo
rest scre from org_screen
set cursor on
*Return .T.