Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Visual Basic DoEvents in Delphi

882 views
Skip to first unread message

David Ullrich

unread,
Jan 17, 1996, 3:00:00 AM1/17/96
to
Application.ProcessMessages;

(You should look at c:\delphi\somedirectory\vb2delph.wri - full of useful stuff.)

--
David Ullrich
Don't you guys find it tedious typing the same thing
after your signature each time you post something?
I know I do, but when in Rome...

Miguel Valles

unread,
Jan 17, 1996, 3:00:00 AM1/17/96
to mig...@teb.upm.es
Dear colleagues,

Do you kmow a similar function to DoEvents used in VisualBasic
for Borland Delphi?

The idea is to attend the events happening during a loop
execution.

Thank you very much in advance,

Miguel


Sundial Services

unread,
Jan 17, 1996, 3:00:00 AM1/17/96
to
In article <4dj9uo$2...@sanson.dit.upm.es> Miguel Valles <mig...@teb.upm.es> writes:

>Dear colleagues,

>Do you kmow a similar function to DoEvents used in VisualBasic
>for Borland Delphi?

>The idea is to attend the events happening during a loop
>execution.


This is what I use. Its construction isn't obvious due to the on-line help
but it does seem to work:

procedure doEvents;
begin
if Application.Terminated then abort;
Application.ProcessMessages;
if Application.Terminated then abort;
end;

The first "if" checks to see if we've already received a WM_QUIT message; if
so we do not want to "eat" it. The second "if" checks to see if the latest
message received was WM_QUIT; if so we want to bail out pronto.

Personally, I find the resulting routine a little confusing but I just added
it to my project-wide utilities module and moved on.

/mr/


Eric Miles

unread,
Jan 18, 1996, 3:00:00 AM1/18/96
to
sun...@primenet.com (Sundial Services) wrote:

>>Dear colleagues,

Just a question, why bother with making your own DoEvents Proc when
you could just call the Application.ProcessMessages. I just use it
plain vanilla with out the extra if's and have never had any problems.
Am I missing something?
Eric Miles
mil...@usafe14.ramstein.af.mil
.............................................
My opinions and comments are my own and ONLY
my own and reflect in no way the Air Force's.
.............................................


James Bacus

unread,
Jan 18, 1996, 3:00:00 AM1/18/96
to
On 17 Jan 1996 17:00:08 GMT, Miguel Valles To: mig...@teb.upm.es with
G.B.T. commented on Visual Basic DoEvents in Delphi:

>Do you kmow a similar function to DoEvents used in VisualBasic
>for Borland Delphi?
>
Application.ProcessMessages;

James V. Bacus

===============================================================================
JVB Imaging jvb...@bix.com

Medical Imaging Software & Systems - Custom Software Development - Consulting
===============================================================================

Ron Loewy

unread,
Jan 18, 1996, 3:00:00 AM1/18/96
to
Use application.processMessages;

Ron.

In article <4dj9uo$2...@sanson.dit.upm.es>,
Miguel Valles <mig...@teb.upm.es> wrote:
>Dear colleagues,


>
>Do you kmow a similar function to DoEvents used in VisualBasic
>for Borland Delphi?
>

>The idea is to attend the events happening during a loop
>execution.
>

> Thank you very much in advance,
>
> Miguel
>


--
Ron Loewy, HyperAct, Inc. +1 (515) 987 2910 | rlo...@hyperact.com
Author of HLPDK/PA, CatMake, Interactive Help and HyperTerp.
Visit our home page at http://www.hyperact.com .

Trey Weaver

unread,
Jan 18, 1996, 3:00:00 AM1/18/96
to
Miguel Valles <mig...@teb.upm.es> wrote:

>Dear colleagues,

>Do you kmow a similar function to DoEvents used in VisualBasic
>for Borland Delphi?

>The idea is to attend the events happening during a loop
>execution.

> Thank you very much in advance,

> Miguel

Try Application.ProcessMessages;

Trey Weaver


Toxic

unread,
Jan 19, 1996, 3:00:00 AM1/19/96
to
Miguel Valles <mig...@teb.upm.es> wrote:

it is......

Application.ProcessMessages;

I found it by accident in the stocks demo app;

>Dear colleagues,

>Do you kmow a similar function to DoEvents used in VisualBasic
>for Borland Delphi?

>The idea is to attend the events happening during a loop
>execution.

> Thank you very much in advance,

> Miguel

Tox
---------------------------------------------------------------------
Two men walk into a bar one after the other, you would have thought
that the second guy would have been smarter.
---------------------------------------------------------------------
This items was brought to you by the letters E and B and the number 7


Ari Hirviniemi

unread,
Jan 21, 1996, 3:00:00 AM1/21/96
to
Miguel Valles wrote:

> Do you kmow a similar function to DoEvents used in VisualBasic
> for Borland Delphi?

Try Application.ProcessMessages;

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ari Hirviniemi, Lappeenranta, Finland (ari.hir...@ktieto.fi)
All my opinions and comments are personal and have nothing to do
with my employer.

0 new messages