Attached progress bar panel

Hi.

Its Stupid again with another dumb problem…

I have a progress bar which is attached to the main window and appears after an ‘on clicked object’ action.

Works great, but when the progress bar finishes the panel doesn’t close. I’ve tried everything to close the damn thing, except a hammer…

Guidance please.

Thanks in advance.
S

while writing applications never expect, that things go without saying :wink:

just after your process add this:


...
set content of progress indicator "piBar" of window "pProgress" to 100
		
close panel (window "pProgress")
		
set the_sound to load sound "Glass"
play the_sound
...

Great! Worked a treat.

:smiley:

I obviously did not try that!!

Thanks.