English

This example is about a simple drawing application with grafical user interface (= GUI), using the gimp tool kit (= GTK). It uses a GtkDrawingArea. The source is to compile at different windows versions and LINUX.

First, the GUI is designed with Glade3 and saved as a GUI-XML-file. This file gets loaded by GTK+tobac and a FB source code frame gets sketched. GTK+tobac reads the needed information form the GUI-XML-file. And it generates some code to include the GUI-XML-file into the source.

At last, the individual features (just a few lines of code) are inserted into the code frame and the source gets compiled by fbc.

The official FB releases only support libglade yet (up to version 0.21.1). Libglade is deprecated. This example uses the current alternative GtkBuilder to handle the GUI-XML-data. It needs a GTK installation >= 2.16 (, see Windows Download). Also, an up-to-date FB header GTK-2.18.6_TJF.bi or GTK-2.22.0_TJF.bi is needed, included in the package GTK+tobac.