AW: why does focus on fld doesn't focus the field?

Tiemo Hollmann TB toolbook at kestner.de
Thu May 31 10:41:12 EDT 2007


Sorry, my field is not editable and the select line or set the selected line
works. It was more of a understanding problem, because in my understanding
"focus" should have done the job and I was surprised to have to use "select"
Thanks Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Eric Chatonet
> Gesendet: Donnerstag, 31. Mai 2007 16:34
> An: How to use Revolution
> Betreff: Re: why does focus on fld doesn't focus the field?
> 
> Hi Tiemo,
> 
> I am not sure to understand completely your problem but I am assume
> you have an editable field (unlocked) and a button to perform some
> action on the selected text in this field.
> Set the traversalOn of the button to false and it will not get the
> focus :-)
> Hope this helps.
> 
> Le 31 mai 07 à 16:28, Tiemo Hollmann TB a écrit :
> 
> > Hello,
> >
> > I have a scrolling field "foo", where I loose the focus when
> > clicking into
> > field "foo", selecting the clicked line and calling some handlers and
> > filling other fields. My first idea was to focus on field "foo" at
> > the end
> > of mouseUp to get the focus on field "foo" again in case the focus
> > get lost
> > somewhere in the other handlers. But keyUp and keyDown don't work, the
> > cursor just stays on the same line. Additionally to the focus I
> > have to
> > select line x of field "foo". (select line word 2 of the
> > selectedline of fld
> > "foo"  of fld "foo") Now KeyUp and KeyDown work again. My question
> > is: why
> > do you need a select line additionally to the focus to get the keys
> > work
> > again? Even if actually a line still was selected. Is it a bug or
> > just rev
> > logic or just a knot in my brain?
> >
> > Thanks Tiemo
> 
> 
> Best regards from Paris,
> Eric Chatonet.
> ----------------------------------------------------------------
> http://www.sosmartsoftware.com/
> eric.chatonet at sosmartsoftware.com/
> ----------------------------------------------------------------
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list