Basic Steps in Creating the GUI
The basic steps involved in creating an application GUI with the Widget Toolbox are:
Initialize the Widget Toolbox with a call to the WtInit function.
Create widgets with the WtCreate function, and set resources that control the appearance and other characteristics of the widgets.
Manage, display, and destroy widgets with the WtSet function.
Add callbacks, event handlers, and timers.
Run the application.
Close the Widget Toolbox.
Combining Widgets and Widget Toolbox Functions
It is possible to combine PV-WAVE 10.0 Widgets and Widget Toolbox functions in the same application.
Widget IDs returned by PV-WAVE 10.0 Widget routines can be used in Widget Toolbox routines, and Widget Toolbox widget IDs can be passed to PV-WAVE 10.0 Widget routines.
The basic steps for creating an application that combines the two kinds of widget functions do not change. You must initialize either PV-WAVE 10.0 Widgets or the Widget Toolbox (WwInit or WtInit function), create the widgets, display or “realize” the widgets, and execute the main loop with either the WwLoop or WtLoop function. For information on PV-WAVE 10.0 Widgets, see
Chapter 5: Using Wave Widgets.