|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
What is the best way to create a form (always on top maybe) that shows some application progress in a Memo or something ?
Example: >>FormShow Login .................... OK Doing something ..... OK Doing other things ... OK Cleaning up ............ OK >>FormHide |
|
#2
|
||||
|
||||
|
I usually do it like this:
1. In the form, I have a memo object (and perhaps an animated control). 2. To do the actual work, I create a TThread derived object and execute it from the form. 3. The TThread object updates the form as it does various tasks. The advantage of this is that I'm guaranteed that the form is created first before the thread executes, since the form creates the thread object. Also, you can easily pass the form's variable to the thread since you're creating it from the form.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Please Wait form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|