use-revolution Digest, Vol 18, Issue 79

Cubist at aol.com Cubist at aol.com
Mon Mar 21 20:04:26 EST 2005


In a message dated 3/21/05 12:36:57 AM, 
use-revolution-request at lists.runrev.com writes:

>
>Date: Sun, 20 Mar 2005 23:38:16 -0500
>From: Mikey <mikeythek at gmail.com>
>Subject: SelectedChunk
>To: How to use Revolution <use-revolution at lists.runrev.com>
>Message-ID: <9b408d8e05032020385f0098a0 at mail.gmail.com>
>Content-Type: text/plain; charset=ISO-8859-1
>
>Hmm.  Per previous discussion, in an attempt to determine where the
>cursor was when the user hit a key (in this case a tab key), I
>generated the following script for the field in question
>
>on tabKey
>   get the selectedChunk
>   answer it
>end tabKey
>
>the variable watcher reports that IT is empty.
   It's worth noting that the tab key can serve to change the "focus" from 
one field to another -- which would tend to mess up the previously-existing 
selection. It might be appropriate to set up a different experiment in which the 
selected-affecting qualities of the tab key don't enter into it:

# in the script of a separate button
on mouseUp
  answer (the selectedChunk)
end mouseUp

   Hope this helps...


More information about the use-livecode mailing list