1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 #include <Xm/Xm.h>
51 #include <XmL/Progress.h>
52
53 main(argc, argv)
54 int argc;
55 char *argv[];
56 {
57 XtAppContext app;
58 Widget shell, progress;
59
60 shell = XtAppInitialize(&app,
"Prog1",
NULL,
0,
61 &argc, argv,
NULL,
NULL,
0);
62
63 progress = XtVaCreateManagedWidget(
"progress",
64 xmlProgressWidgetClass, shell,
65 XtVaTypedArg, XmNbackground, XmRString,
"white",
6,
66 XtVaTypedArg, XmNforeground, XmRString,
"#000080",
8,
67 XmNwidth,
300,
68 XmNheight,
25,
69 NULL);
70
71 XtVaSetValues(progress,
72 XmNvalue,
50,
73 NULL);
74
75 XtRealizeWidget(shell);
76 XtAppMainLoop(app);
77 }
78