[REBOL] Re: field focus event
From: rotenca:telvia:it at: 18-Sep-2003 15:41
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