-- fix scroll to an exact line put (the vScroll of me div the textHeight of me) + 1 into tLineNum set the vScroll of me to (tLineNum-1) * the textHeight of me
Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/
On Thursday, August 28, 2003, at 08:14 am, Chris Sheffield wrote:
Well, I think it’s a challenge anyway.
?
I have a field with text from a story.? It’s just basic text split into one or more paragraphs.? I need to come up with a way to create what we call a reading guide, which would basically consist of a rectangular box that follows the mouse pointer up and down will inside of the text field.? The trick is that the box must “snap” into place so to speak, so that the current line of text is vertically centered within the box.? Students will be reading the text and the box cannot wander if the mouse pointer is not exactly on the line of text.? I am using fixedLineHeight for the text field, and I think that will come into play somewhere (the distance to move the box up and down?).? What I’m not sure of is which messages I need to handle to create this kind of behavior.
?
Does anyone have any ideas?? Have I even made sense?? I can try again to explain it if necessary.
?
Thanks,
?
Chris Sheffield
Software Development
Read Naturally
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
