If a window supports a close button, I tend to use that one to be on safe side, but you can usually macro a /hide <Window> as well.
If you want to use a close button on another level, you can put a WC_CloseButton in your window root, set it to visible=false and use another button whereever you want that presses the WC_CloseButton when you click it.
The old WC_ notation and the new "WindowFrame" formats are identical in function.
You can also just invis a window, but it will still be there and active and not be closed - e.g. an invis chat window still receives chat input, whereas a closed chat window will not.
|