First page Back Continue Last page Overview Graphics
General GUI Implementation
Layout the window in "layers" of containers
- Grid (row, column)
- Border (North, South, East, West)
- Horizontal & Vertical "Boxes"
Create control widgets and event handlers
Show the 'Top Level' window
Start the main event loop
- User interacts with the GUI (presses buttons, selects menu options, etc.) causing events to be generated and queued by the application ("first come, first serve")
- For each 'event' that is generated, if a control widget is set up to 'listen' to that event, its event handler is called
- Event loop typically runs until the user exits the application
- Program should clean up any GUI resources if exiting the event loop and not exiting application
Notes: