Specifications

Table of Contents
Acknowledgments .................................................................................................................... v
Chapter 1 − Athena Widgets and The Intrinsics ...................................................................... 1
Introduction to the X Toolkit ......................................................................................... 1
Terminology ................................................................................................................... 2
Underlying Model .......................................................................................................... 3
Input Focus ..................................................................................................................... 5
Chapter 2 − Using Widgets ...................................................................................................... 6
Setting the Locale .......................................................................................................... 6
Initializing the Toolkit .................................................................................................... 6
Creating a Widget .......................................................................................................... 7
Common Resources ....................................................................................................... 8
Resource Conversions .................................................................................................... 8
Realizing a Widget ......................................................................................................... 9
Processing Events .......................................................................................................... 10
Standard Widget Manipulation Functions ..................................................................... 10
Using the Client Callback Interface ............................................................................... 12
Programming Considerations ......................................................................................... 13
Example Programs ......................................................................................................... 17
Chapter 3 - Simple Widgets ..................................................................................................... 18
Command Widget .......................................................................................................... 18
Grip Widget .................................................................................................................... 22
Label Widget .................................................................................................................. 25
List Widget ..................................................................................................................... 28
Panner Widget ................................................................................................................ 33
Repeater Widget ............................................................................................................. 37
Scrollbar Widget ............................................................................................................ 41
Simple Widget ................................................................................................................ 46
StripChart Widget .......................................................................................................... 48
Toggle Widget ................................................................................................................ 51
Chapter 4 - Menus .................................................................................................................... 58
Using the Menus ............................................................................................................ 58
SimpleMenu Widget ...................................................................................................... 58
SmeBSB Object ............................................................................................................. 63
SmeLine Object ............................................................................................................. 65
Sme Object ..................................................................................................................... 65
MenuButton Widget ....................................................................................................... 67
Chapter 5 - TextWidgets. ....................................................................................................... 72
Te x tWidget for Users .................................................................................................... 72
Actions Supported by all TextWidgets .......................................................................... 75
Default Translation Bindings ......................................................................................... 81
Te x tFunctions ................................................................................................................ 82
AsciiTextWidget ............................................................................................................ 86
AsciiSrc Object .............................................................................................................. 91
AsciiSink Object ............................................................................................................ 94
Customizing the TextWidget ......................................................................................... 95
Te x tWidget .................................................................................................................... 96
Te x tSrc Object ................................................................................................................ 99
iii