why does this not work and how do you do it?

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Apr 9 14:51:59 EDT 2008


Hi Peter,

AFAIK there is no simple answer and you are not foolish. This is a  
bug, possible related to <http://quality.runrev.com/qacenter/show_bug.cgi?id=6056 
 >. I believe there is another, similar bug, but I can't find it that  
quickly.

There are two things you can try. First, select the text of the field,  
instead of focusing the field. Second, create a new handler, which  
focuses the field, and send a message in 0 millisecs, which triggers  
that handler.

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

A large collection of scripts for HyperCard, Revolution, SuperCard and  
other programming languages can be found at http://runrev.info




On 9 apr 2008, at 20:17, Peter Alcibiades wrote:
> One card, one button, one field (called Field)  Traversal is off on  
> the
> button, on for the field. There is only one script - for the button  
> - which
> goes:
>
> on mouseUp
>  ask "think of a number"
>  if it is not a number then
>  put empty into field "Field"
>  focus on field "Field"
>  else
>  put it into field "Field"
>  focus on field "Field"
>  end if
> end mouseUp
>
> What I expect to happen is that in either case the user will be able  
> to enter
> from the keyboard.  But what actually happens is that the cursor  
> flashes in
> the field, but the keyboard is dead.  To activate the keyboard you  
> have to
> double click in the field (why double?).
>
> There is going to be a simple and obvious answer, but I cannot find  
> it.  Oh
> dear.
>
> Yours, fully expecting to feel very foolish in a few minutes from  
> now....!
>
> Peter
>



More information about the use-livecode mailing list