Re: Cursor position in Icon/text overwrite



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
.



Relevant Pages

  • Re: Come on MVPs I need your help
    ... Its funny, I cant remember being rude to you rather the opposite, never mind ... without the need to tell us not to bother posting. ... > my comp icon or try to access my drives. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: How to stop auto-load/play?? [SOLVED]
    ... konq/kaffeine auto-load problem. ... I don't mind the icon appearing on ... suppose one can split the difference, huh. ...
    (Ubuntu)
  • Re: Icons VS 2003
    ... browser that you need to worry about. ... One thing to keep in mind though, ... IE will only display the favorite icon in the address bar if ... the page in question is located in your browser's favorites. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: features dropped in MS Excel 2003
    ... The "what's this" icon. ... The equal sign on the formula bar. ... Are two that come to mind. ... Prev by Date: ...
    (microsoft.public.excel.misc)