Subject Re: [IBO] Animations during slow sqls
Author Robert martin
Thanks Jason

I suppose I would need a thread to send update messages to the Main VCL
thread. Yuk !

Rob Martin
Software Engineer

phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com

Wild Software Ltd



Jason Wharton wrote:
>> Code gear / Microsoft have changed the way TAnimate works.
>> It used to be threaded but now simply uses a timer in the
>> main thread. There are valid reasons for this however it
>> is causing me some minor problems.
>>
>> Previously when running an sql that is slow (compley SQL,
>> small number of results), I have simply run an animation
>> and displayed a wait message. However the Animate now
>> freezes while the query is run. You can get around this
>> sort of problem in delphi code by running
>> application.processmessages in long running code, but I am
>> not sure how to handle it in a Query. Should I be looking
>> at using the callback stuff or is their something simpler?
>>
>
> I don't think you would get smooth enough message processing so I would look
> for another solution for this.
>
> Jason Wharton
>
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>
>
>
>