Way to insert text where cursor is in field?
Jeanne A. E. DeVoto
jeanne at runrev.com
Sun Aug 24 23:21:00 EDT 2003
At 11:53 PM -0400 8/24/2003, Rob Gould wrote:
>I'm sure I must be overlooking something simple - - - - What I'm
>trying to do is have a text field that detects when the user presses
>the character "*", and when they do, it replaces that "*" with a
>bitmap graphic. (Using the imageSource call).
>
>I've got the below code which _almost_ does this, except that it
>replaces all the astericks except the one that the user just
>pressed.
Try using keyUp instead of keyDown. (keyDown runs before the
character is entered in the field.)
--
Jeanne DeVoto ~ jeanne at runrev.com ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
~~~ Check our web site for new Revolution editions & special offers ~~~
More information about the use-livecode
mailing list