Re: progressbar update problem [message #68379 is a reply to message #68373] |
Thu, 29 October 2009 05:40   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
lbusett@yahoo.it writes:
> I'm using David Fanning's progressbar procedure to show the
> advancement of a time-consuming routine, but I have a problem. The
> progressbar works ok, but since each cycle of the operation that I'm
> conducting take a couple of minutes to complete I have some problems
> in the "updating" of the window. The window infact upates itself only
> at the end of each cycle, and if I open a window "over" the progress
> bar and then close it then the progress bar window appears "blank"
> until the start of the next cycle. Moreover, and this is the worst
> problem, the "cancel" button of the progress bar does not work. I
> believe this is because IDL is busy at making "other things", and the
> program isn't able to catch the button press events.
>
> Does anyone know if there is a way to overcome this problem ?
I wonder if the IDL Bridge would help in this situation?
(IDL_IDLBridge object). The idea would be to run the progress
bar in a separate IDL process. I really have no idea if you
could communicate with the ProgressBar object over the bridge
in this way. But since it would be running in a separate IDL
process, it might solve the "update" problem. On the other
hand, it might also cause a world of problems on its own, so...
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|