This example shows how to create graphical user interface elements within the window and trap events.
What this Example Does
This example shows the following:
- How to create and use hosted windows, buttons, scroll bars, static texts, and list boxes
- How to modify the transparency of an object based on GUI events
- How to accept button clicks
- How to use GUI events to open a hosted window, quit the engine or toss up a hosted dialog
- How to select a custom font
All source code for this example is available in the example Button.
Notes on Example 5
- Hosted GUI controls are built into the engine and not Revolution
- This example can be useful for providing user HUD, save screens and more.
References
This example is based on the C++ based tutorial 5 of the Irrlicht Engine.









