Results 1 to 5 of 5

Thread: Teleprompter

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833

    Teleprompter

    I know its not a game but I think it falls under the animation category!

    I need to write a teleprompter for a TV station. I just need to know how to make words scroll up and down the screen. I tried to do it with labels put it failed miserably with all sorts of flicker
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You can do this using the TextOut API. Put it on a picturebox then copy that whole picturebox to another, eliminating the flicker. The first picturebox is called a "backbuffer".
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    Sastraxi,

    I loaded text into a picture box (got in from another post while searching for TextOut API)

    so I have my text in the text box and it is scrolling, how do I do this backbuffer thing?
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You know how you use .Cls to remove whatever was on the picturebox, and this causes flicker? You would then directly Bitblt or PaintPicture this onto another picturebox, which you DONT use CLS on. This makes it so you never see nothing, therefore eliminating the flicker.

    For tutorials on BitBlt, see my tutorial:
    http://vbden.tripod.com/articles/invmask.htm
    or Fox's tutorial:
    http://fox.acky.net/
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Sas, why don't you finally remove these 4 or 5 lines of code declaring the constants? vbSrcCopy & Co. are pre-defined VB6 values...

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