• Welcome to Valhalla Legends Archive.
 

Anti scroll?

Started by FuZe, August 14, 2003, 04:00 PM

Previous topic - Next topic

FuZe

I noticed in Starcraft if you move the scroll bar up in an active channel, the scroll bar 'locks' to the position it is in, yet the chat is still updated.  How would I implement this using a rich text box control?

drivehappy

You might try looking at the RichText's scrollbar methods. When setting the SelectionStart see if you are able to check if the scrollbar is at max. Blizzard made their objects through their own tools, so it would be easier for them to do that.

Camel

I think I posted my massively bureaucratic implementation a while back; perhaps you should try searching for that?

Skywing

Quote from: FuZe- on August 14, 2003, 04:00 PM
I noticed in Starcraft if you move the scroll bar up in an active channel, the scroll bar 'locks' to the position it is in, yet the chat is still updated.  How would I implement this using a rich text box control?
Doing this with a RichEdit/RichText control is a big pain.  Starcraft actually uses a ListBox for this reason.