----- file created by xop_makedoc on: Fri Mar  7 13:26:16 2003
----- Documentation for /scisoft/XRayOptics/xop2.1/src_idl/Embedded/RSI-SRC/xop_wd.pro -----

 NAME:
	XOP_WD

 PURPOSE:
	Changes XOP working directory. XOP working directry is where
	XOP writes temporary files. 

 CATEGORY:
	XOP

 CALLING SEQUENCE:
	XOP_WD
 INPUTS:
	None

 KEYWORD PARAMETERS:
       GROUP:  The widget ID of the group leader of the widget.  If this 
               keyword is specified, the death of the group leader results in
               the death of widgets created by XOP_WD.
	DEFAULT: When this keyword is set, XOP_WD changes directory to
		the default XOP Working Directory. This directory is
		specified in the XOP_WD environment variable. If the
		XOP_WD environment variable is not set, the XOP Working
		Directory is  %XOP_HOME%\tmp under WINDOWS and .
		(dot=current directory) under UNIX.
		If this keyword is not set, a dialog_pickfile window 
		appears to select interactively the Working Directory.

 OUTPUTS:
	None

 SIDE EFFECTS:
	Changes directory using the IDL's cd command.

 PROCEDURE:
	Straightforward.

 USE:
	This procedure is to be used by XOP_INI when starting XOP.
 EXAMPLES:
	xop_cw
	xop_cw,/defaults

 MODIFICATION HISTORY:
 	Written by:	Manuel Sanchez del Rio (srio@esrf.fr) 97/10/02
	98/11/04 srio@esrf.fr adds Catch. Use of /Dir kw in Dialog_Pickfile().
	99/01/12 srio@esrf.fr fixed doc.

