AW: how to get the current selected line with arrow key?

Tiemo Hollmann TB toolbook at kestner.de
Fri Jun 13 06:31:51 EDT 2008


Bonjour Eric,
I was almost already on this way, but couldn't believe, that there is a
"standard" handler, like "arrowKeyUp" which I just overlooked.
Thank you, very helpful, bon weekend
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: Freitag, 13. Juni 2008 12:24
> An: How to use Revolution
> Betreff: Re: how to get the current selected line with arrow key?
> 
> Bonjour Tiemo,
> 
> You have two ways:
> 
> 1. You script by yourself arrowKey handler, setting the hilitedLine
> according to your needs and the param sent with arrowkey message:
> left, right, up or down:
> 
> on arrowKey pKey
>    switch pKey
>      case "up"
>      <statements>
>      break
>    etc.
> end arrowKey
> 
> 2. You use a 'send in time' form:
> 
> on arrowKey
>    send "TellMeTheLine" to me in 50 milliseconds
>    pass arrowKey
> end arrowKey
> -------------------------------------------------------
> on TellMeTheLine
>     put the selectedtext of me
> end TellMeTheLine
> 
> Hope this helps ;-)
> 




More information about the use-livecode mailing list