Solved

How do I wait for vertical retrace???

Posted on 1998-10-14
3
499 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

739 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