A quick guile-fltk tutorial using gfluid

1. Start gfluid:

$ gfluid

2. Select "New->code->function/method", then click okay.

3. Select "New->group->window". You should have a new window and gfluid should look like this:

4. Double click on the line that says "Window" and the widget editor window will appear:

5. Name the window "main-window" and give it the label (or title) "Hello World Window". Then click okay.

6. Select "New->buttons->button". Now you can interactively move and resize the button you just created.

7. Double click on the line that says "Button" and the widget editor will open again. We don't need to name this button, but give it a nice label like "Hello Button". Then set the callback (code to be run when the widget is clicked) to:

(display "Hello World\n")
The next image shows what it should look like so far.

8. Add one last function ("New->code->function") and set the function name to be blank - this will make it default to main.

9. Add a code block ("New->code->codeblock"). And give it the following code:

(make_window)
(fltk-window::show main-window)
(fltk-fl::run)

10. Save the project as "first.fl". Then select "File->Write Scheme Code".

11. Make the file "first.scm" executable (chmod u+x first.scm) and run it!! Is that rapid application development or what?

> The Guile Fltk Page
> The Extreme Wave Page
>> My Home Page


Last modified: Sun Oct 10 16:48:48 CDT 1999