All Manuals > CLIM 2.0 User Guide > 1 Using CLIM

1.7 The CLIM demos

To load the demo software, enter the following in a listener:

(require "clim-demo")

To run it, enter:

(clim-demo:start-demo)

This creates a new window, containing a menu listing all the demos. Choose the demo you wish to see. The CLIM demos are quick sketches of possible applications which demonstrate a variety of CLIM programming techniques. They are not robust, production-quality applications with complete error checking, but they can provide you with some ideas.

Note that the appearance of CLIM windows can be configured on some systems. See 1.7.1 Changing the appearance of CLIM windows.

The sources for all the demos are included. The test suite is a collection of examples of CLIM's capabilities. The test suite examples are simple and succinct, so we recommend examining their sources for examples of CLIM's functionality that you may want to employ.

You can also run the demos directly, rather than using the menu, with the following function calls:

Function calls running each of the CLIM demos
DemoCall

Bicycle gearing

(clim-user::do-bicycle-gearing)

Custom output records

(clim-user::do-scigraph)

Peek

(clim-user::do-peek)

Browser

(clim-demo::do-ico)

Ico demo

(clim-browser::do-browser)

Bitmap editor

(clim-demo::do-bitmap-editor)

Graphics editor

(clim-graphics-editor::do-graphics-editor)

Color chooser

(clim-demo::do-color-chooser)

Plotting demo

(clim-demo::do-plot-demo)

Thinkadot

(clim-demo::do-thinkadot)

Address book

(clim-demo::do-address-book)

15 puzzle

(clim-demo::do-puzzle)

Flight planner

(clim-demo::do-flight-planner)

CAD demo

(clim-demo::do-cad-demo)

Graphics demos

(clim-demo::do-graphics-demo)

Lisp listener

(clim-demo::do-lisp-listener)

Test suite

(clim-test::do-test-suite)

1.7.1 Changing the appearance of CLIM windows

This section describes how you can configure the fonts, colors and so on used in CLIM windows on some systems.

For more information see the section "Properties of the host window system" in the CAPI User Guide and Reference Manual.

1.7.1.1 Changing the appearance on Microsoft Windows

LispWorks (version 5.0 and greater) is a "themed" application on Microsoft Windows XP and later versions. Themes alter the appearance of some CLIM panes.

To make CLIM appear as on earlier versions of Windows and in LispWorks 4.x, call:

(win32:set-application-themed nil)

before creating any CLIM windows.

1.7.1.2 Changing the appearance on X11/Motif

You can change CLIM's color scheme and default fonts with X resources. Place your X resources in a file called CLIM port (that is, nine characters including the space) on your resource lookup path.

These are the default resources:

*buttonFontList:                          *times-bold-r-normal--14*
*labelFontList:                           *times-bold-r-normal--14*
CLIM port*CLIM-menu-bar*foreground:       #000080
CLIM port*CLIM-menu-bar*background:       #b3e6fd
CLIM port*CLIMprogressbar.foreground:     Red
CLIM port*CLIMpointerdoctext*foreground:  #000080
CLIM port*CLIMpointerdoc*background:      #b3e6fd
CLIM port*foreground:                     Black
CLIM port*background:                     White

By default, CLIM windows are mostly white. This is specified in the last line above.


CLIM 2.0 User Guide - 01 Dec 2021 19:38:55