Fun Sample

fun


Compiling

To compile the example:

Running

After launching the program, a window will be displayed as illustrated above. Clicking the push button marked "Maze" will open a new window and draw a maze within this window. Clicking the push button marked "Artist" will open a new window, and display output dependent on the movement of the mouse pointer within the client area of that window. Clicking the push button marked "Fun" will open a new window which contains a fake error message and a close push button which moves when you try to move the mouse pointer over it.

Under the Hood

Both FUN_DIALOG and ARTIST redefine `on_mouse_move' to track the actions of the mouse pointer and respond accordingly.

This sample contains the following classes: