Exemple #1
0
main(int argc, char **argv)
{
    XtAppContext appContext;
    Arg args[20];
    int n;

    Widget toplevel, mainWindow, spinContainer, comboContainer, menuContainer;
    
    toplevel = XtAppInitialize(&appContext, ApplicationClass, NULL, 0,
						&argc, argv, NULL, NULL, 0);

    n = 0;
    XtSetArg(args[n], XmNorientation, XmHORIZONTAL); n++;
    XtSetArg(args[n], XmNspacing, 40); n++;
    mainWindow = XmCreateWorkArea(toplevel, "mainWindow", args, n);
    XtManageChild(mainWindow);

    n = 0;
    XtSetArg(args[n], XmNspacing, 20); n++;
    spinContainer = XmCreateWorkArea(mainWindow, "spinContainer", args, n);
    XtManageChild(spinContainer);
    CreateSpinBoxes(spinContainer);

    n = 0;
    XtSetArg(args[n], XmNspacing, 20); n++;
    comboContainer = XmCreateWorkArea(mainWindow, "comboContainer", args, n);
    XtManageChild(comboContainer);
    CreateComboBoxes(comboContainer);

    n = 0;
    XtSetArg(args[n], XmNspacing, 20); n++;
    menuContainer = XmCreateWorkArea(mainWindow, "menuContainer", args, n);
    XtManageChild(menuContainer);
    CreateMenuButtons(menuContainer);

    XtRealizeWidget(toplevel);
    XtAppMainLoop(appContext);
}
Exemple #2
0
Widget XmCreateWorkArea_TNK(Widget parent, String name, ArgList arglist,Cardinal argcount) { return XmCreateWorkArea(parent, name, arglist, argcount);}