Results 1 to 2 of 2

Thread: ScrollWindowEx API

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    1
    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

  2. #2
    Addicted Member darrenl's Avatar
    Join Date
    Jul 2000
    Location
    Portsmouth, UK
    Posts
    148

    Thumbs down SmoothScroll

    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.
    Dazzer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width