|
From: MughalShahzad on 29 Jan 2008 09:18 I have a text field with some text I want to jump at specific location within that text field to make glossary, help required regards shahzad
From: Rob Dillon on 29 Jan 2008 18:42 You can use offset() to find the position of a word in larger body of text, then you can use charPosToLoc() to find the physical position in the text, then use the vertical component of that point to scroll the text. Something like this: on scrollToText thisString,thisTextMember wordLoc = offset(thisString,member(thisTextMember).text) wordPoint = member(thisTextMember).charPosToLoc(wordLoc) member(thisTextMember).scrollTop = wordPoint[2] end
|
Pages: 1 Prev: Opening an external image. Next: Getting confused with the IF statement |