1. RE: up and down arrow

I don't know where my 1'st email went. It got lost so here is again.

Thanks Derek,

Nice Idea but windows apparently ignores it. I even tried to set the current
field index to zero on a lostfocus event before the field is left.

procedure lostFocusProcess()
 setIndex(getSelf(),0)
end procedure

onLostFocus[Screen] = routine_id("processLostFocus")
onKeyPress[Screen] = routine_id("keyPressProcessB")
onKeyDown[Screen] = routine_id("keyPressProcessA")

Windows 'remembers' where the cursor location was at the field (i.e. use
your mouse and click it to the middle of a field) and if you return it
places the cursor at that location (+- 1 based on up or down arrow being
used) and ignores the setIndex().

...george

----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Wednesday, August 22, 2001 10:11 PM
Subject: Re: up arrow and down arrow


>
> > From: George Walters <gwalters at sc.rr.com>
> > To: EUforum <EUforum at topica.com>
> > Reply-To: EUforum at topica.com
> > Subject: Re: up arrow and down arrow
> > Date: 23/08/2001 9:21:58 AM
> >
> >
> > Thanks Derek,
> >
> >         I'm using the up and dn arrows to
> > advance / backup editText fields
> > (don't cringe too much) rather than what
> > windows does (the same as left and
> > right arrows). What windows does after I'm
> > through with setFocus() is to
> > move the arrow to an interior part (where
> > it would have been on the previous
> > field usually) of the editText field where
> > I've setFocus(). Difficult to
> > explain, hopefully you can follow.
> >
>
> Just an idea, but try this ...
>
>   setFocus(nextFld)
>   setIndex(nextFld, 0)
>
> this should tell windows where to place the cursor in the field you are
> going to. The zero just means place it at the start of the field, but you
> can decide otherwise if you like.
>
> --------
> Derek
>
>
> confidential information intended solely for the use of the individual or
> entity to whom they are addressed. If you are not the intended recipient
of
> this message you are hereby notified that any use, dissemination,
> distribution or reproduction of this message is prohibited. If you have
> received this message in error please notify the sender immediately. Any
> views expressed in this message are those of the individual sender and may
> not necessarily reflect the views of Global Technology Australasia
Limited.
>
>
>
>
>


...george

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu