As it is often needed that RETURN do the same as clicking on the default icon
(the one with border type 2), and also that the up and down arrow keys move
to writeable icons above and below, WimpExtension will handle these keys for
you. Simply include the validation code 'wr' in the writeable icon's
validation string:
'wr'
Syntax:
wr[RETURN icon number],[up icon number],[down icon number]
The icons specified will be used when the user presses RETURN, up arrow and
down arrow respectively. If the icon specified is a writeable icon then the
caret will be moved to that icon, otherwise WimpExtension will generate a
fake Mouse_Click event for that icon, which will make it appear to your task
as if the user clicked with button status %100 on the icon (the mouse
coordinates given will be those of the caret).
You may leave out any of the numbers in the syntax, if you do so then
WimpExtension will not affect the handling of that key.
Related SWIs: WimpExt_PutCaretIcon, WimpExt_MoveCaret.
|
|
|