(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...
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
>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/
>>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 V. Bacus
===============================================================================
JVB Imaging jvb...@bix.com
Medical Imaging Software & Systems - Custom Software Development - Consulting
===============================================================================
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 .
>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
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
> 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.