How do I force a key to enter just one character when being pressed?

William de Smet williamdesmet at gmail.com
Wed Jan 19 05:39:11 EST 2011


Hi there,

I limit text entry of fld "text" with following code.

on keyDown pKey
   if (the formattedHeight of fld "text" < the height of fld "text")
  then
  pass keyDown
  end if
end keyDown

One thing that I want to change now is a way to force a key to enter
just one character after being pressed/hold down.
Any thoughts on that?

greetings,

William




More information about the use-livecode mailing list