1
Graphical user interface using Caml/Tk
4
A first program that justs creates a button labelled Hello.
7
Creates a button with an action attached to it.
10
Same as Hello, but additional quit button (and first example of
11
geometry packing specification).
14
A simple program that adds 2 numbers typed in two input areas.
17
Specification of a color using three scales that give the respective
18
amounts of red, green, and blue components of the color.
21
Converts a given amount from francs to euros, and converse.
24
Converts a given amount from a given currency to another one. Source
25
and target currencies are chosen using a menu.
28
A Caml/Tk (sort of) clone of Xeyes. Introduce the notion of canvas.
31
A simple game that uses images: cut the image into pieces then add an
32
empty place to move over pieces. You must reconstruct a coherent
33
image. Relatively advanced example.
36
An interactive game. An advanced example using timers, canvas and images.
39
To build an interactive toplevel named camltktop, including tk
41
ocamlmktop -I +labltk -custom labltk.cma -o ocamltktop
43
then load the file loadall.ml
47
where + stands for the path to camltk on your local installation
49
(for instance /usr/local/lib/ocaml/labltk)