On Wednesday, October 2, 2002, at 11:22 AM, Paul Steven wrote:

> I have a scrolling TEXT member that I would like to display a hilite 
> (simply
> a quickdraw shape) when a line is clicked. I have managed to do this ok
> however the problem is that I would like this hilite to remain over the
> selected line as the text member is scrolled. I am using the custom
> scrollbar behaviour from the library palette (Director 8.51).
>
> Any ideas?

Try getting the scrollTop of the member on frame updates, and setting 
the shape's location based on that. Oh, wait -- custom scroll behavior, 
so I guess you're not using the built-in scrollbars. Well, that 
behavior obviously knows about positioning, so it should be able to 
send the information out when you poll it -- I mean, you might have to 
write a handler for it that allows you to get its vertical scroll 
value, but that should allow you to get what you need.

Have you looked at keywords such as 'selection' and 'selectedText'? 
Offhand I don't know if they work to hilite parts of non-editable 
members, but if so, that might take care of your problem too.


              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
        http://shop.osborne.com/cgi-bin/osborne/0072195622.html

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to