Valhalla Legends Archive

Programming => General Programming => Topic started by: FuZe on August 14, 2003, 04:00 PM

Title: Anti scroll?
Post by: 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?
Title: Re:Anti scroll?
Post by: drivehappy on August 14, 2003, 04:04 PM
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.
Title: Re:Anti scroll?
Post by: Camel on August 14, 2003, 06:56 PM
I think I posted my massively bureaucratic implementation a while back; perhaps you should try searching for that?
Title: Re:Anti scroll?
Post by: Skywing on August 14, 2003, 08:25 PM
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.