.
Send Feedback

Search Posts

Re: how to disable function key
============ The Euphoria Mailing List ============


posted by: don cole [doncole at pacbell.net]

mark wrote:
]
]
] i like to disable the function key, F1,F2, etc
] how can i code it
] what i mean is that if the function is pressed, it is just being ignored
]
] i am using the prompt_string, so, i would like if say for example
] the following is entered:
]
] ab[F1]cde then i would be happy to just reject that entry
]
] thank you in advance

untested code
[eucode]
--An event function to handle various keystrokes and menu clicks:
function onChar_MainAppWindow[atom ID,atom hWnd,atom uMsg, atom char, atom lParam]
if uMsg=WM_KEYDOWN then
--trap control keys like arrow keys, home, end, etc.
if char =114 then--F3
return 0
--do nothing
elsif char =27 --esc
QuitApp[]
end if
end if
return 0
end function

Don Cole

--^----------------------------------------------------------------
This email was sent to: [email removed]

Or send an email to: [email removed]

For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER
--^----------------------------------------------------------------

[December 26, 2006]