1. how to disable function key

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

new topic     » topic index » view message » categorize

2. Re: how to disable function key

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
--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 }}}

new topic     » goto parent     » topic index » view message » categorize

3. Re: how to disable function key

thanks don

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu