Re: Detecting word location of a user in a field.

2005-01-31 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I believe there is a way to do it using selectedChunk,  but not 
entirely sure of the semantics right now.  If the text is relatively 
static between tests, I suppose you could select word 5, read in the 
selectedChunk to establish a character range, then select empty and 
test the selectedChunk for overlap with the version you previously 
stored when the tab key is pressed.  Something like that, anyway.

On Jan 29, 2005, at 1:55 PM, Glen Bojsza wrote:
I was wondering if it possible to detect when a user is in a
particular word location in a field.
I am trying to test for when a user uses a tab key but only when in
the word 5 location of a field.
thanks.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB/kR+7aqtWrR9cZoRAjVSAJ0U07x26adUAWe3JxMoA9KhGxsFLQCfRMRj
kSSBvOIYgQx0OqGXKM9nobc=
=p0Yx
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting word location of a user in a field.

2005-01-30 Thread J. Landman Gay
On 1/29/05 12:55 PM, Glen Bojsza wrote:
I was wondering if it possible to detect when a user is in a
particular word location in a field.
I am trying to test for when a user uses a tab key but only when in
the word 5 location of a field.
Yes:
get the number of words in char 1 to (word 4 of the selectedchunk) of 
fld 

This will give you the number of the word containing the insertion point.
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution