* tests/ac_test2.prg
* tests/adirtest.prg
* tests/ainstest.prg
* tests/altdtest.prg
* tests/and_or.prg
* tests/array16.prg
* tests/arrayidx.prg
* tests/arrays.prg
* tests/arreval.prg
* tests/arrindex.prg
* tests/atest.prg
* tests/box.prg
* tests/boxtst2.prg
* tests/byref.prg
* tests/calling.prg
* tests/clasinit.prg
* tests/clasname.prg
* tests/classch.prg
* tests/classes.prg
* tests/clsdata.prg
* tests/cmphello.prg
* tests/codebl.prg
* tests/codebloc.prg
* tests/comments.prg
* tests/curdirt.prg
* tests/db_brows.prg
* tests/dbevalts.prg
* tests/docase.prg
* tests/dosshell.prg
* tests/dupvars.prg
* tests/dynobj.prg
* tests/dynsym.prg
* tests/exittest.prg
* tests/extend1.prg
* tests/exthrb.prg
* tests/fib.prg
* tests/fornext.prg
* tests/fortest.prg
* tests/funcarr.prg
* tests/gfx.prg
* tests/gtchars.prg
* tests/gtcolors.prg
* tests/gtkeys.prg
* tests/hello.prg
* tests/ifelse.prg
* tests/inherit.prg
* tests/inhprob.prg
* tests/inifiles.prg
* tests/initexit.prg
* tests/inline.prg
* tests/iotest.prg
* tests/iotest2.prg
* tests/keywords.prg
* tests/langmsg.prg
* tests/linecont.prg
* tests/lnlenli1.prg
* tests/lnlenli2.prg
* tests/longdev.prg
* tests/longstr.prg
* tests/longstr2.prg
* tests/mathtest.prg
* tests/memfile.prg
* tests/memory.prg
* tests/readhrb.prg
* tests/rto_get.prg
* tests/rto_tb.prg
* tests/scroll.prg
* tests/seconds.prg
* tests/set_test.prg
* tests/speedold.prg
* tests/stripem.prg
* tests/t1.prg
* tests/test_all.prg
* tests/testbrw.prg
* tests/testhtml.prg
* tests/testid.prg
* tests/testpre.prg
* tests/testwarn.prg
* tests/ticktime.prg
* tests/tstchbx.prg
* tests/tstmacro.prg
* tests/tstprag.prg
* tests/vec1.prg
* tests/videotst.prg
* tests/vidtest.prg
* cleaning up tests (roughly complete)
72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
// Testing Harbour screen scrolling (requires the GT API)
|
|
/* Harbour Project source code
|
|
http://harbour-project.org/
|
|
Donated to the public domain on 2001-03-08 by David G. Holm <dholm@jsd-llc.com>
|
|
*/
|
|
#include "box.ch"
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL ct
|
|
|
|
DevPos( MaxRow(), 0 )
|
|
DispBegin()
|
|
? "If you have the GT API linked in, the screen will be blanked, a text block"
|
|
? "will be drawn in the upper-left hand corner of the screen, and then the inside"
|
|
? "of the text block will be scrolled around. Otherwise, you will see the screen"
|
|
? "scroll, the text block will be drawn starting from the bottom right and scroll"
|
|
? "up, but there will be no scrolling inside the text block."
|
|
?
|
|
?
|
|
DispEnd()
|
|
Pause()
|
|
|
|
SET COLOR TO "GR+/RB"
|
|
CLS
|
|
@ 0, 0, 14, 45 BOX B_SINGLE
|
|
@ 0, 0 SAY "01234567890123456789012345678901"
|
|
@ 1, 0 SAY "01234567890123456789012345678901"
|
|
@ 2, 0 SAY "01234567890123456789012345678901"
|
|
@ 3, 0 SAY "01234 78901"
|
|
@ 4, 0 SAY "01234 This is a test. 78901"
|
|
@ 5, 0 SAY "01234 This is only a test. 78901"
|
|
@ 6, 0 SAY "01234 Had this been a real 78901"
|
|
@ 7, 0 SAY "01234 emergency, you would 78901"
|
|
@ 8, 0 SAY "01234 be dead now. 78901"
|
|
@ 9, 0 SAY "01234 78901"
|
|
@ 10, 0 SAY "01234567890123456789012345678901"
|
|
@ 11, 0 SAY "01234567890123456789012345678901"
|
|
@ 12, 0 SAY "01234567890123456789012345678901"
|
|
@ 13, 0 SAY "0 1 2 3 "
|
|
Pause()
|
|
|
|
//save/restore test
|
|
cT := SaveScreen( 0, 0, 13, 31 )
|
|
RestScreen( 10, 40, 23, 71, cT )
|
|
pause()
|
|
|
|
Scroll ( 1, 1, 11, 30, - 2, - 5 )
|
|
pause()
|
|
Scroll ( 1, 1, 11, 30, 2, 5 )
|
|
pause()
|
|
Scroll ( 1, 1, 11, 30, - 5, 2 )
|
|
pause()
|
|
Scroll ( 1, 1, 11, 30, 7, - 12 )
|
|
pause()
|
|
SET COLOR TO "W+/R"
|
|
Scroll ( 1, 1, 11, 30, 0, 0 )
|
|
pause()
|
|
|
|
RETURN
|
|
|
|
FUNCTION pause()
|
|
|
|
DevPos ( MaxRow() - 2, 0 )
|
|
__Accept ( "pause: " )
|
|
|
|
RETURN NIL
|