/*==================================================================
  ==================================================================
  ==	XMusic -- An Interactive Interface to Csound		  ==
  ==       Copyright (C) 1988 by George D. Drapeau                ==
  ==                  All Rights Reserved                         ==
  ==================================================================
  ==================================================================
*/
/* $Log:	helpWin.c,v $
 * Revision 1.2  89/08/06  18:12:15  drapeau
 * Cleaned up the code for the first X11 release.
 *  */

#include <stdio.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/AsciiText.h>
#include "defs.h"
#include "externs.h"


void CreateHelpWindow()
{
  static	Arg helpArgs[3] =
    {
      {XtNwidth,(XtArgVal)600},
      {XtNheight,(XtArgVal)300},
      {XtNtitle,(XtArgVal)"XMusic:Help"}
    };
  
  static 	Arg argList[3] = 
    {
      {XtNeditType,(XtArgVal)XttextRead},
      {XtNstring,(XtArgVal)helpLabel},
      {XtNtextOptions,(XtArgVal)(resizeHeight|resizeWidth)}
    };

  helpWidget	= XtCreatePopupShell("Help",			    /* Create a Popup shell for the Help Window */
				     shellWidgetClass,
				     topLevelShell,
				     helpArgs,XtNumber(helpArgs));
  
  helpTextWidget= XtCreateManagedWidget("HelpText",		    /* Create a text widget for the popup shell */
					asciiStringWidgetClass,
					helpWidget,
					argList,XtNumber(argList));
  
}								    /* end function CreateHelpWindow */
