Solved

How do I wait for vertical retrace???

Posted on 1998-10-14
3
498 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 200 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

829 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