It's possible to use Scroll (like Clipper) in a Window
Posted: Mon May 24, 2010 6:43 pm
Hi,
I wonder if I can use the following little code in a window.
Any help or tip is welcome.
Thanks
Best Regards
Javier
I wonder if I can use the following little code in a window.
Code: Select all
cSalida := 'Exit'
nLinea := 1
nCont := 0
Do While .T.
cVar := Space(6)
@nLinea++, 0 Say 'Enter Item:' Get cVar Valid ChkItem( ) Color 'W+/N'
Read
If !Empty(cVar) .And. cVar # cSalida
nCont++
If nCont == 3
//Reboot( )
Endif
Endif
If LastKey( ) == K_ESC
ChkItem( )
Endif
If cVar == cSalida
CLS
Exit
Endif
Enddo
Function ChkItem( )
If nLinea > 24
Scroll( 0, 0, 24, 20, 1 )
nLinea--
Endif
Return .T.Thanks
Best Regards
Javier