Next: Widget Basics
Up: A First MOTIF Program
Previous: Declaring callback functions
We have nearly finished our first program. We have two final stages to perform
which every Motif program has to perform. That is to tell X to:
- display or realize the widgets. This is done with the
XtRealizeWidget(); call. We pass the top level widget top_wid to
the function so that all widgets are displayed.
- enter the main processing loop. XtAppMainLoop(app) does this. After
this call Xt has control over the program and it is this that dispatches events
that invoke callbacks etc. NOTE: The application code will be idle
until a user activates an event.