Files
harbour-core/harbour/tests/disptest.prg
Viktor Szakats 1963970a1d 2008-08-07 21:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/examples/pp/pp.c
   * contrib/hbmisc/fileread.prg
   * contrib/hbmisc/tests/readfile.prg
   * contrib/hbmisc/tests/twirl.prg
   * contrib/hbmisc/twirler.prg
   * doc/en/readme.txt
   * doc/es/readme.txt
   * harbour-ce-spec
   * harbour-w32-spec
   * harbour.spec
   * source/rtl/achoice.prg
   * tests/boxtst2.prg
   * tests/delimtst.prg
   * tests/devtest.prg
   * tests/disptest.prg
   * tests/inkeytst.prg
   * tests/longdev.prg
   * tests/output.prg
   * tests/round.prg
   * tests/sbartest.prg
   * tests/scroll.prg
   * tests/sdf_test.prg
   * tests/seconds.prg
   * tests/setkeys.prg
   * tests/testhtml.prg
   * tests/version.prg
   * utils/hbdoc/hbdoc.prg
     * Minor formattings, cosmetic updates, 
       homepage made lower case everywhere.
2008-08-07 19:54:10 +00:00

91 lines
1.6 KiB
Plaintext

/*
* $Id$
*/
// Test program for SETPOS(), DISPOUT(), ?, and ?? Clipper compatibility
// The results should be identical between Harbour with the GT API and
// Clipper. INKEY() is used to pause the display at certain points to make
// it easier to compare scrolling compatibility. A TONE() is sounded before
// each INKEY(0) call.
/* Harbour Project source code
http://www.harbour-project.org/
Public domain program written by David G. Holm <dholm@jsd-llc.com>
*/
procedure main()
local a,b,c,d,e,f,g,h,i,j,k,l
SetPos( -2, 76 )
DispOut( "You won't see this!" )
tone(440,1)
inkey(0)
a := Row()
b := Col()
?? a, b
tone(440,1)
inkey(0)
c := Row()
d := Col()
?? c, d
tone(440,1)
inkey(0)
e := Row()
f := Row()
?? e, f
tone(440,1)
inkey(0)
g := Row()
h := Col()
?? g, h
tone(440,1)
inkey(0)
i := Row()
j := Col()
?? i, j
tone(440,1)
inkey(0)
k := Row()
l := Col()
?? k, l
tone(440,1)
inkey(0)
CLS
?? a,b
?? c,d
?? e,f
?? g,h
?? i,j
?? k,l
DispOut( "Hello" )
SetPos( 6, 74 )
DispOut( "Partly off screen!" )
? Row(), Col()
SetPos( 8, -12 )
a := Row()
b := Col()
?? "PA"
c := Row()
d := Col()
?? "ll on screen!"
e := Row()
f := Row()
? a,b
? c,d
? e,f
SetPos( 13, -12 )
a := Row()
b := Col()
DispOut( "All off screen!" )
c := Row()
d := Col()
DispOut( "All on screen!" )
e := Row()
f := Row()
? a,b
? c,d
? e,f
SetPos( 19, 85 )
?? "All on screen??"
tone(880,1)
inkey(0)
SetPos( 50, 20 )
?? "On screen??"
quit