Re: Cursor position in Icon/text overwrite
- From: Matthew Phillips <mnews@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 19:09:02 +0100
In message <na.0a5f534d9a.a903c0mijas@xxxxxxxxxxxxxxxxx>
Mr John FO Evans <mijas@xxxxxxxxxxxxxxxxx> wrote:
> I want to allow the user to put single numbers into an icon. So far so good
> - button type writable - 2 characters max - validation A0-9.
>
> However if the user changes their mind the cursor automatically goes to the
> right of the character and a delete is needed before entering a new number.
>
> Can this delete be avoided? and how? Is there an overwrite mode?
One option is to use the "n" option for the K validation strings,
which reports all keypresses in the icon to the task. You can then
respond to the keys 0 to 9 being pressed by setting the writable icon
contents to that value, no matter what it was before.
I cannot remember whether the Wimp will pass the keypress on if it has
handled it itself, so you may need to force this by setting the
allowable characters to something *other* than 0-9. Perhaps "A Kn" if
you don't mind space being entered.
--
Matthew Phillips
Dundee
.
- References:
- Cursor position in Icon/text overwrite
- From: Mr John FO Evans
- Cursor position in Icon/text overwrite
- Prev by Date: Cursor position in Icon/text overwrite
- Next by Date: Re: Cursor position in Icon/text overwrite
- Previous by thread: Cursor position in Icon/text overwrite
- Next by thread: Re: Cursor position in Icon/text overwrite
- Index(es):
Relevant Pages
|