Athena Widgets   


Remember to set your server control to xhost www.cs.curtin.edu.au before running these programs. Also they will not work if you are using a proxy server or you are running your browser on a machine different from the one you are displaying it on.
You may also like to choose a smaller font since these examples also produce listings.

xhw : Xt Hello World is the simplest example. It shows how to
initialize the toolkit and use the Label widget to
display a string.
xlabel : Another example using the Label widget. Introduces
the programmer to X Toolkit command line parsing.
xcommand : This example uses the Command widget to show how callback
functions are defined and how to use them to get user data.
xcommand2 : This example performs the same task as xcommand, but uses
application defined action routines to retrieve user input
instead of callback functions.
xlist : A 4 entry List Widget with callback.
xscroll : An example of the values returned by the Scrollbar widget,
and how its callback routines are used.
xbuttonbox :The Box widget is used to introduce the programmer to a
widget hierarchy.
xboxes : Nested widget hierarchies, and application specific
resources are introduced.
xtext : An example using the Text widget. Changing the text string,
and getting the value out of the Text widget are explained.
This is the first place that widget data is changed
dynamically.
popup : Creating a popup widget with a dialog box, and positioning
the popup are explained.
xmenu1 : A simple Simple Menu Widget example.
xmenu2 : A more complicated Simple Menu Widget example.
xwidgets : A complicated example program that uses every widget in the
Athena widget set at least once. Timeouts are also used in
this example.

Chris D. Peterson
kit@expo.lcs.mit.edu
MIT X Consortium