Is it possible to find out the x,y location of a specific word in a field?
Id need to place a 'target' style graphic over specific words, I can already highlight them, but I need to find their position so i can
set the loc of graphic "target" to......
Ive tried to the loc of word x of line y of field "myfield" but that didnt work, any other ideas?
Thanks
Andy
Location of a specific word
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi Andy,
You can select the word and get the selectedLoc. I believe that the returned co-ordinate is the topleft of the word.
Best,
Mark
You can select the word and get the selectedLoc. I believe that the returned co-ordinate is the topleft of the word.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode