Next Previous Contents

The EXG Tutorial

Miron Brezuleanu

April 14, 2000


This document tries to introduce EXG to its user. EXG is a cluster of Eiffel classes meant to help the Eiffel programmer in using proficiently the X Window system and the Gtk+ widget set. There is a simple way of porting EXG application to Win32 platforms using the Win32 Gtk+. However one is stuck to the Small-Eiffel compiler. This is a simple tutorial. For more references, one may look into the Gtk+ Tutorial - much of the information found there can be easily adapted to EXG. This document is translated in a hurry from a Romanian version, so it may be meaningless here and there. This will be fixed in the future, of course. I assume knowledge of Eiffel and some basic knowledge of Gtk+. This tutorial is very basic. Maybe some other features of EXG need some documentation. I welcome suggestions.

1. Setting things up

2. The very first program

3. Showing a message. The EXG_MESSAGE_BOX class

4. The first button

5. The logical structure of the window's layout

6. The first drawing

7. A special case - keyboard events

8. Let's use a timer!

9. Getting rid of flicker

10. Sort of an epilogue


Next Previous Contents