Hide window won't come back.

When I display a window attached to my main window I use hide window to get rid of it. The problem is that it won’t ever come back with the display window command.

EDIT: In fact no display window function will occur

How can I get around this?

	if btnTitle is "Backup" then
		display window "Progress" attached to window "Backup"
	end if
	if btnTitle is "Cancel" then
		hide window "Progress"
	end if

Keep in mind that I’m a complete AS Studio noob, but in my little experience, I’ve had to use

close panel window "Progress"

I’m not sure how the “panel” fits in there…it seems that I don’t need it to “display” but I do to “close”…or at least in my hacked together Mail Search example, it does.

I think drukepple has it right. From the Studio Terminology Reference (bold added):

P.S. drukepple, “panel” is just part of the command name (probably from historical reasons). See also: Panels Versus Dialogs and Windows

Perfect. Thank you.

I think “panel” is there because it is attached to a window therefore making it act more like a panel than its own window.