Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

credit scroller?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I was wondering if anyone knows how to make a credit scoller
in win32 app environment that scrolls text from bottom to top slowly.
 
use Win32 API Ion Filipski
1c.bmp


filipski@excite.com
 
You could just create a edit control and scroll using a thread (or windows timer). On every time increment you would do:
SendMessage(hEditControl, EM_SCROLL, (WPARAM)SB_LINEDOWN, 0);
However scrolling an edit control like this will move a whole line at a time so it won't look very smooth.

You could play with SCROLLINFO structures to get pixel level motion by scrolling.

There's also ScrollWindow() which would probably work.

You could also make an image of the credits and paint the image in to a static control then move it (or use an animation control(?)).

Finally, there's probably some code out there from somebody who's already done this.
--Will Duty
wduty@radicalfringe.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top