/*******************************/
/** Test for Mosaic functions **/



#include <Xm/Xm.h>
#include <Xm/RowColumn.h>
#include <Xm/Frame.h>
#include <Xm/ToggleB.h>
#include <Xm/Label.h>
#include <Xm/TextF.h>
#include <Xm/MainW.h>
#include <stdio.h>


void main( int argc, char *argv[] )
	{

	Widget menu, shell, mainwindow, rowcol, frame, label;
	int i;
	XtAppContext app;

	shell = XtAppInitialize ( &app, "Mainwindow", NULL, 0,
		&argc,argv,NULL,NULL,0);

	mainwindow = XtVaCreateManagedWidget("mainwindow",
		xmMainWindowWidgetClass, shell, NULL,0 );

	frame = XtCreateManagedWidget("frame",xmFrameWidgetClass,mainwindow,NULL,0);

	label = XtVaCreateManagedWidget("label",xmLabelWidgetClass,frame,
		XmNchildType, XmFRAME_TITLE_CHILD,NULL);

	rowcol = XmCreateRadioBox(frame, "rowcol", NULL, 0);
	XtManageChild(rowcol);

	for (i=0;i<4;i++)
		{
		Widget toggle = XtCreateManagedWidget("toggle",
			xmToggleButtonWidgetClass, rowcol, NULL, 0);
		}

	menu = XmCreateMenuBar(mainwindow,"menu",NULL,0);

	XtVaSetValues(mainwindow,XmNmenuBar,menu,XmNworkWindow,frame,NULL);


	XtRealizeWidget ( shell );

	XtAppMainLoop( app );

	}

