I just played around with the progressbar functionality of TAdvTaskDialog, but did not get it to work.
It is the OnDialogProgress event that should be used to update the progress bar. This event is triggered at regular intervals. There is not an alternative way (because this wraps Microsoft Windows APIs that only expose progressbar updating this way)
Ok, thank you for the answer. I allready feared, that this is the only option. So it is useless for me. Not your fault though.
What about a TAdvTaskDialog method which automatically executes the dialog in a separate thread?
Not sure how that would make a big difference.
The recommended solution is to put the progress status in some form global vars and read these vars from the OnDialogProgress event and have the progress bar updated this way.
The difference is that by executing the task dialog in the main thread, it returns only after the task dialog has been closed. This is a disadvantage when the global variable you mention is updated e.g. in a loop which cannot be executed because the execute function of the task dialog has not yet returned. By executing the task dialog in a parallel thread, the global variable can be updated in the main thread and its value can be picked up in a Synchronize event handler of the parallel thread.
Ok, that makes sense. We've added it on the feature request list.
Thank you! Your support is fantastic. You're the best!