?
Solved

How do I wait for vertical retrace???

Posted on 1998-10-14
3
Medium Priority
?
503 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

719 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