20000202-22:00 GMT+1 Antonio Linares <alinares@fivetech.com>

This commit is contained in:
Antonio Linares
2000-02-02 22:11:19 +00:00
parent 43a1d33075
commit fbd56ff415
2 changed files with 19 additions and 3 deletions

View File

@@ -151,6 +151,7 @@ FUNCTION Alert( xMessage, aOptions, cColorNorm, nDelay )
LOCAL nOldDispCount
LOCAL nCount
LOCAL nMRow, nMCol
/* TOFIX: Clipper decides at runtime, whether the GT is linked in, */
/* if it is not, the console mode is choosen here */
@@ -292,6 +293,7 @@ FUNCTION Alert( xMessage, aOptions, cColorNorm, nDelay )
nKey := Inkey( nDelay )
DO CASE
CASE nKey == 0
EXIT
@@ -345,6 +347,21 @@ FUNCTION Alert( xMessage, aOptions, cColorNorm, nDelay )
nKey := Inkey( nDelay )
DO CASE
CASE nKey == K_LBUTTONDOWN
nMRow = MRow()
nMCol = MCol()
FOR nEval := 1 TO Len( aOptionsOK )
if nMRow == nInitRow + Len( aSay ) + 2 .and. ;
nMCol >= aPos[ nEval ] .and. nMCol <= aPos[ nEval ] + ;
Len( " " + aOptionsOK[ nEval ] + " " ) - 1
nChoice = nEval
EXIT
endif
NEXT
if nChoice == nEval
EXIT
endif
CASE nKey == K_ENTER .OR. ;
nKey == K_SPACE .OR. ;
nKey == 0
@@ -430,4 +447,3 @@ PROCEDURE __NONOALERT()
s_lNoAlert := .F.
RETURN

View File

@@ -1152,7 +1152,7 @@ HARBOUR HB___KEYPUT( void )
HARBOUR HB_MCOL( void )
{
hb_retnl( s_yRowPos );
hb_retnl( s_xRowPos );
}
/* $DOC$
@@ -1185,7 +1185,7 @@ HARBOUR HB_MCOL( void )
HARBOUR HB_MROW( void )
{
hb_retnl( s_xRowPos );
hb_retnl( s_yRowPos );
}
/* $DOC$