Hi all,
I have an app that reads some data from an LDAP query upon
initialization. It takes at least one minute for the query to be
received, so it's performed asyncronously, because this way I can at
least make the progress of "importing" the data by updating a wxGauge or
something... now the problem is, I don't know "where" to place the
gauge. If I do it in the main app (wxApp->wxFrame->wxGauge) then the
whole stuff locks up until the import is finished, but I'd like to show
the gauge _before_ the main app window is build, cause the data returned
by the import process is needed for a wxTree I display in the main
window... any suggestions? Do I need threads or wxYield here?
Any hints are greatly appreciated...
regards,
Igor
Hi all,
I have an app that reads some data from an LDAP query upon
initialization. It takes at least one minute for the query to be
received, so it's performed asyncronously, because this way I can at
least make the progress of "importing" the data by updating a wxGauge or
something... now the problem is, I don't know "where" to place the
gauge. If I do it in the main app (wxApp->wxFrame->wxGauge) then the
whole stuff locks up until the import is finished, but I'd like to show
the gauge _before_ the main app window is build, cause the data returned
by the import process is needed for a wxTree I display in the main
window... any suggestions? Do I need threads or wxYield here?
Nope. Have you considered an OnIdle approach? OnTimer would be just
another way... If you want your UI functional, delay your processing
somewhere after your frame's __init__.
Any hints are greatly appreciated...
Hope, this helps
regards,
Igor
Cheers,
Hans-Peter
···
On Sunday, 17. February 2002 17:16, Igor Stroh wrote: