Files
harbour-core/contrib/hbnf/tests/test.prg
Przemysław Czerpak 96ca3fe470 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* Makefile
  * config/*
  * contrib/*
  * doc/*
  * extras/*
  * include/*
  * lib/*
  * package/*
  * src/*
  * tests/*
  * utils/*
    * removed empty lines left after removed '$' + 'Id' + '$' identifiers
2014-01-21 20:41:05 +01:00

33 lines
608 B
Plaintext

#require "hbnf"
#include "inkey.ch"
PROCEDURE Main()
LOCAL nver, nmar, ntype, nir, ppp
nmar := ft_MVersion( @nver, @ntype, @nir )
ppp := nmar + nver
? Str( nmar, 2, 0 ), ".", Str( nver, 2, 0 )
? ppp / 100
Inkey( 0 )
? "is mouse on", ft_MReset()
Inkey( 0 )
? ft_MShowCrs()
Inkey( 0 )
? ft_MXLimit( 0, 8 * MaxCol() )
Inkey( 0 )
? ft_MYLimit( 0, 8 * MaxRow() )
Inkey( 0 )
DO WHILE LastKey() != K_ESC
? "mouse row is", ft_MGetX()
? "mouse col is", ft_MGetY()
IF LastKey() == K_ESC
EXIT
ENDIF
ENDDO
ft_MHideCrs()
RETURN