Results 1 to 5 of 5

Thread: 2 simple questions....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    State of Confusion
    Posts
    133

    Question

    Number 1...

    How can I scroll text across a screen (like a screen saver) without the flicker? I've tried a timer control and a for loop...


    Number 2...

    What's the best way to add a pause in an application? Not necessarily waiting on anything in particular, just say I want to do something then wait 3 or 4 seconds to do something else...

    These are easy enough right??
    "Don't take life too seriously, you'll never get out alive"
    from Van Wilder

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Numer 1
    This might help http://www.vb-world.net/controls/tip516.html

    Numer 2
    Use SleepEx Api call. It will suspend the execution of the program for the desired time while passing the control in between to the operating systgem to do other pending works.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    State of Confusion
    Posts
    133
    I tried that 'LockWindowUpdate' function, but, unless I'm using it wrong, that keeps a text box from being updated at all. I need it to move from the left side of a form to the right side of a form, with an animation-like appearance, but no flicker...

    Am I just using the function wrong? Still in the learning stages of programming... Need help... Or a gun...

    Thanks anybody.......
    "Don't take life too seriously, you'll never get out alive"
    from Van Wilder

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Try using api calls for moving the control instaed of inbuilt VB functions. You might have too many controls on the form or may be having insufficient RAM in you machine.

  5. #5
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    If it's just text you are trying to move, put it in a label and move it.
    just a thought, but you might consider painting the text directly onto the form using a bitblt, and not worry about a control. Bitblt is the fastest way in windows to show anything. This method is guaranteed not to flicker.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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