#include <Xm/Xm.h>
#include <XmL/Progress.h>
main(argc, argv)
int argc;
char *argv[];
{
XtAppContext app;
Widget shell, progress;
shell = XtAppInitialize(&app, "Prog1", NULL, 0,
&argc, argv, NULL, NULL, 0);
progress = XtVaCreateManagedWidget("progress",
xmlProgressWidgetClass, shell,
XtVaTypedArg, XmNbackground, XmRString, "white", 6,
XtVaTypedArg, XmNforeground, XmRString, "#000080", 8,
XmNwidth, 300,
XmNheight, 25,
NULL);
XtVaSetValues(progress,
XmNvalue, 50,
NULL);
XtRealizeWidget(shell);
XtAppMainLoop(app);
}