Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I wait for vertical retrace???

Posted on 1998-10-14
3
Medium Priority
?
505 Views
Last Modified: 2010-04-06
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
Comment
Question by:lar_jens
  • 2
3 Comments
 
LVL 1

Author Comment

by:lar_jens
ID: 1342908
Edited text of question
0
 
LVL 7

Accepted Solution

by:
BlackMan earned 600 total points
ID: 1342909
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
 
LVL 1

Author Comment

by:lar_jens
ID: 1342910
I haven't tried it out yet (school comes first...).. But it seams logical to do so.. Thanx for
the tip... :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question