Hi Romano,

as a newbie I am very interested in this discussion and try to understand
...

One could however detect when a field either:
    1. gets clicked, or
    2. is activated via the TAB key (can you detect that ??)
If these events can be detected you know that the field where it happens has
got focus. Or am I totally wrong?

Arie van Wingerden


----- Original Message ----- 
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 3:41 PM
Subject: [REBOL] Re: field focus event


>
> Hi
>
> > I am trying to find where I can drop some code into a view field the
> > instant that the field becomes active.
> > For example:
> >
> > view layout [ f1: field
> > button [ focus f1 ]
> > ]
> >
> > So that when I press the button and the field f1 becomes the
> > focus I want some code to run. Can't seem to find this particular
> > situation using detect or insert-event-func.
>
> In this exact case you can do a simple:
>
> my-code: [print 1]
>
> view layout [ f1: field
>     button [
>         do my-code
>         focus f1
>      ]
> ]
>
> Focus function does not create an event, so you can't intercept a not
existing
> event.
>
> ---
> Ciao
> Romano
>
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to