E
esquif
I have a process that take some time to process data in formA.
While processing the data I wish to pop a "waitingform". The waiting
form have it's own thread and show the process advancing between 0 and
100%.There is a timer within the
Waitingform, on each tick the progress percentage is read and display,
also this reflect that
the program is still running. When the processing finish, the waiting
form just close.
I have done everything and it's work well except for one thing. I wish
the waiting form to be modal and own by the main form.
If I set the waitingform owner :
WaitingForm->Owner = FormA
The waitingform doesn't appear before the data process finish, the form
disappear as soon as it appear. If I dont set the owner, the
waitingform works as expected, but can be lost behind other windows,
and user may believe there is a problem when it's not.
I use multiple threads in my application. The data processing thread is
not the same as formA nor the same as the Waitingform.
Does someone have an idea how I can set the ownership of the waiting
form and still keep the behavior i wish? Thank you
While processing the data I wish to pop a "waitingform". The waiting
form have it's own thread and show the process advancing between 0 and
100%.There is a timer within the
Waitingform, on each tick the progress percentage is read and display,
also this reflect that
the program is still running. When the processing finish, the waiting
form just close.
I have done everything and it's work well except for one thing. I wish
the waiting form to be modal and own by the main form.
If I set the waitingform owner :
WaitingForm->Owner = FormA
The waitingform doesn't appear before the data process finish, the form
disappear as soon as it appear. If I dont set the owner, the
waitingform works as expected, but can be lost behind other windows,
and user may believe there is a problem when it's not.
I use multiple threads in my application. The data processing thread is
not the same as formA nor the same as the Waitingform.
Does someone have an idea how I can set the ownership of the waiting
form and still keep the behavior i wish? Thank you