In my C++ Builder 6 application, I have a form which performs lengthy computations / work and reports status back to the user. The user has the option to cancel as well. What I'm shooting for is something like the "Compiling..." dialog that pops up when you run a project from the IDE. My form will have several lines of text, however, that become visible as tasks are completed.
I have tried kicking off the computations using the "OnActivate" and "OnShow" methods of this form, but neither seems to work very well. When I use "OnShow", the form doesn't show up until all computation is done. When I use "OnActivate" the text on the form doesn't show up (although the progress bar on my form does work as it is supposed to). It's like the form doesn't get a chance to display everything before computation begins, and so the screen is not updated as it is supposed to be.
Is there a better way to tackle this problem?
I have tried kicking off the computations using the "OnActivate" and "OnShow" methods of this form, but neither seems to work very well. When I use "OnShow", the form doesn't show up until all computation is done. When I use "OnActivate" the text on the form doesn't show up (although the progress bar on my form does work as it is supposed to). It's like the form doesn't get a chance to display everything before computation begins, and so the screen is not updated as it is supposed to be.
Is there a better way to tackle this problem?