Specifications

Athena Widget Set libXaw 1.0.7
Note that in this example, as in the previous example, XtNumber would return 10, not 2, and
therefore would not be useful.
The fourth approach is to use a mixture of the first and third approaches: you can statically define
the argument list but modify some entries at runtime. Forexample:
static Argarglist[] = {
{XtNwidth, (XtArgVal) 400},
{XtNheight, (XtArgVal) NULL},
};
arglist[1].value = (XtArgVal) 300;
In this example, XtNumber can be used, as in the first approach, for easier code maintenance.
2.11. Example Programs
The best way to understand howtouse anyprogramming library is by trying some simple exam-
ples. A collection of example programs that introduces each of the widgets in that Athena widget
set, as well as manyimportant toolkit programming concepts, is available in the X11R6 release as
distributed by the X Consortium. It can be found in the distribution directory contrib/exam-
ples/mit/Xaw,but see your site administrator for the exact location of these files on your system.
See the README file from that directory for a guide to the examples.
17