Determining exact location within a field

Ken Ray kray at sonsothunder.com
Thu Feb 26 12:17:10 EST 2004


Dan,

Check into the selectedLoc function. This would allow you to (under
lockScreen) select the chunk of text that is your placeholder, then use
the selectedLoc() to determine where the topLeft corner of the selection
is, and then use that to draw your entry field.

HTH,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Dan Soneson
> Sent: Thursday, February 26, 2004 10:42 AM
> To: use-revolution at lists.runrev.com
> Subject: Determining exact location within a field
> 
> 
> Does anyone know of a way to find the location of a specific spot 
> within a text field? I am interested in developing a module that will 
> allow me to construct a fill-in-the-blank activity. My thought is to 
> construct a text in a field and mark the words that I want to replace 
> in some way (precede them with a special character). Then I want to 
> construct a button with a script that finds the words with this 
> character in the text and replaces them with a space. Over 
> this space I 
> want to create a field into which users can enter the missing 
> word. It 
> would be nice to automate this process and to be able to know exactly 
> where to place the new field, how large to make it, etc. But I cannot 
> figure out the placement issue.
> 
> Any suggestions appreciated.
> 
> Dan
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 




More information about the use-livecode mailing list