Solved

doevents  -    the functions before this command must be done....

Posted on 2003-12-10
2
230 Views
Last Modified: 2010-04-05
The code above in the programm must be completely worked through, before the next command comes.

In VB  there is the command doevents...
Is there the same or better procedure in delphi ??????


thank you

greetings from austria    max
0
Comment
Question by:thomaspeter
  • 2
2 Comments
 
LVL 8

Expert Comment

by:gmayo
ID: 9911299
Application.ProcessMessages if that is what you mean. It's hard to tell...

Geoff M.
0
 
LVL 8

Accepted Solution

by:
gmayo earned 200 total points
ID: 9911307
Basically it processes any messages in the application's message queue, so that things like redraw/refresh work. You'd use it, for example:
1. Screen.Cursor := crHourglass
2. Application.ProcessMessages
3. Do lengthy operation
4. Screen.Cursor := crDefault

Line 2 is important as the screen cursor wouldn't otherwise update until after the lengthy operation.

Geoff M.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now