Handle form input
FORMTOUCH SEL%[,nowait!]
FORMTOUCH%(SEL%, nowait!, X1%,Y1%,X2%,Y2%, INDEX%)
The prepared ( FORMINIT, FORMENTRY) and displayed ( FORMDISPLAY) form becomes active. The procedure looks for a valid touch, changes if necessary the internal status and sets SEL to the corresponding selector .
If the optional boolean parameter nowait is given as TRUE FORMTOUCH returns immediately, and SEL is set to -1 if there was no touch.
The function FORMTOUCH() returns the type of the selected entry (-1 if no one was selected) and stores the coordinates in X1, Y1, X2 and Y2. The entry index (to be used with FORMSTRINGS) ist stored in INDEX.
|