In a MOTIF program these 3 stages consist of :
- Initializing the toolkit
- Creating application widgets
- Creating one or more GPHIGS widgets
- Adding callback(s)
- Realize
- MainLoop
For a GPHIGS program the steps are as follows :
- Open PHIGS
- Open a workstation
- Build CSS or retrieve archive files
- Wait for input events
- Manage events
For any program requiring the use of GPHIGS-GUI :
- Handling specific to the program
- Open PHIGS
- Call a pxgui_xxx function
- Handling specific to the program
- ...
- Program end and close PHIGS