Board index » delphi » Display an animated status screen during query execution

Display an animated status screen during query execution

Does anyone have a pointer on how to display a message, such as
"Searching..." , along with an animated icon,  during the execution of
a query?  

My simple attempt of putting a timer on the status form failed because
the application did not receive any WM_TIMER messages until the query
finished.  I tried to show the status dialog in a separate thread, but
I am having bad luck getting the form to appear without creating
deadlock.  I've tried to put all of the code which fiddles with the
form in Synchronize'd procedures, but I keep getting either a)
deadlock or b) lost connection to the server.

Any ideas?

Chris Lincoln
Ultrax, Inc.

 

Re:Display an animated status screen during query execution


The only way you do this is by being able to have
'Application.processmessages' occur during the query execution, and the
only way to do that would be to have a BDECallback function registered
before you execute the query. And if you can get the BDERegisterCallBack /
BDEGetCallBack function to work more than three times in a row, then you
will be worthy of demi-God status.
See the Borland TI document dealing with Callbacks

Good luck, Jonathan

Chris Lincoln <cklinc...@worldnet.att.net> wrote in article
<32962d17.4504...@netnews.worldnet.att.net>...

Quote
> Does anyone have a pointer on how to display a message, such as
> "Searching..." , along with an animated icon,  during the execution of
> a query?  

Re:Display an animated status screen during query execution


Quote
"Jonathan Martin" <Jonat...@Marsh.prestel.co.uk> wrote:
>The only way you do this is by being able to have
>'Application.processmessages' occur during the query execution, and the
>only way to do that would be to have a BDECallback function registered
>before you execute the query. And if you can get the BDERegisterCallBack /
>BDEGetCallBack function to work more than three times in a row, then you
>will be worthy of demi-God status.
>See the Borland TI document dealing with Callbacks

>Good luck, Jonathan

Thanks.  I have browsed thru the DB.PAS unit looking at their use of
BDE callbacks.  I've heard that getting them to work can be trouble.
Chris Lincoln
Ultrax, Inc.

Other Threads