Board index » cppbuilder » orphan window

orphan window


2008-05-17 12:34:13 AM
cppbuilder14
Hello.
I developed an application (C++ Builder3) in which the Main window opens a new window with a progress bar to show the progress of a quite long computation.
After the computation ends this window is closed through the Hide() or Close() function.
Everything seems to work ok, but I noticed that if during the computation the application looses the input focus the progress window is not closed at all! Note that if the application does not loose the input focus the window is closed correctly. Also I've tried debugging the program and discovered that the Close() method is always called (and returns an ok value) but it seems it does not work if the application is defocused!
Can someone kindly suggest some solution?
Thanks a lot
Stefano Agostinelli
 
 

Re:orphan window

"Stefano Agostinelli" < XXXX@XXXXX.COM >wrote in message
Quote
I developed an application (C++ Builder3) in which the Main window
opens a new window with a progress bar to show the progress of a
quite long computation.
<snip>
This is not an IDE issue. You already have an open discussion in the
"students" newsgroup for this topic. Please continue directing your
comments there.
Gambit