PDA

Click to See Complete Forum and Search --> : ScrollWindowEx API


ScootsMc
Sep 26th, 2000, 04:10 PM
I'm writing an application for radio stations that puts commercial copy text on screen while production personnel produce the commercial.

I want this to scroll automatically in teleprompter fashion, rather than line at a time.

MSDN shows an API call that should do this named ScrollWindowEx, which, in the declaration, shows a flag at the end for a constant named SW_SMOOTHSCROLL. However, I can't find the constant value in the API guide from VB, nor have I found any examples on how to set the time frame for the scrolling action (MSDN says set it in the HIWORD portion of the flag, but I'm lost there!

If anyone has done any work with this call in this fashion, I'd love to hear about it.

ScootsMc

darrenl
Oct 3rd, 2000, 11:02 AM
Just happend to be looking at the ScrollWindowsX command this morning. It's definition in the MSDN that comes with VB6 is this :

SW_SMOOTHSCROLL Windows NT 5.0 and later: Scrolls using smooth scrolling. Use the HIWORD portion of the flags parameter to indicate how much time the smooth-scrolling operation should take

So... Win2K only then.

you could just try looping by the font height in pixels and setting the dx or dy value to -1 or 1 (depending on which direction you want)

Good Luck.