• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 507
  • Last Modified:

How do I wait for vertical retrace???

Is there some way to wait for vertical retrace in delphi??

When I write something to the canvas, and wants to clear
the canvas, update my stuff's position, and write them back,
I can't avoid flickering...

Is there some way to wait for the vertical retrace, or
another way to avoid flickering in my delphi applications??

I am running delphi under Windows NT4.0 - Assembler instructions won't work!
0
lar_jens
Asked:
lar_jens
  • 2
1 Solution
 
lar_jensAuthor Commented:
Edited text of question
0
 
BlackManCommented:
Take a look at the LockWindowUpdate systemcall instead, it freezes the window while you are updating it.
Call LockWindowUpdate(MyForm.Handle) to start the lock and LockWindowUpdate(0) to release the window again.
0
 
lar_jensAuthor Commented:
I haven't tried it out yet (school comes first...).. But it seams logical to do so.. Thanx for
the tip... :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now