Claudio,
> Why is mouse left button press limites in ACHOICE?
> If you single click on any element of the array, that
> element is highlighted, cursos is moved to that
> element, but the udf function is not called.
> Is there a reason for this or is it a bug?
This sample works fine here:
#include "Achoice.ch"
#include "Inkey.ch"
FUNCTION MAIN()
SET EVENTMASK TO INKEY_ALL
CLS
? ACHOICE( 0, 0, 10, 20, { "1", "2", "3" }, , "TEST" )
RETURN NIL
FUNCTION TEST( nMode, nElement, nRow )
@ 30, 20 SAY nMode
@ 31, 20 SAY nElement
@ 32, 20 SAY nRow
IF LASTKEY() = K_ESC
RETURN AC_ABORT
ENDIF
RETURN AC_CONT
EMG
--
EMAG Software Homepage:
http://www.emagsoftware.it
The EMG Music page:
http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page:
http://www.emagsoftware.it/spectrum
The Best of Spectrum Games:
http://www.emagsoftware.it/tbosg