The class of a static-picture control.
Control
An instance of the :static-picture class. This control displays an icon which may not be changed by the user. It can act like a button; it may be set to receive mouse clicks via the on-click event handler.
The image that is to appear on a static-picture (or on a picture-button
) widget may
be specified with any one of the following properties (typically by
passing the equivalent keyword argument such as :pixmap to
make-instance when creating an instance of the widget):
static-picture
(or the title
property of a picture-button
) as either a pixmap,
a list of a texture and a texture-info, the path namestring of a .bmp
or .ico file, or an icon handle.
Resizing a static-picture may mean that an aliasing (jaggies) problem appears in the pixmap. Go back to the program that created the graphic and re-save it at a higher resolution or a larger image size if you encounter this problem.
The stretching property: if the :stretching option is passed as non-nil, then the bitmapped image will stretch automatically to fit the size of the widget. If nil, it will be drawn at the size at which the image was defined.
See About how to get sample code for creating controls in cgide.htm, which explains how to use the IDE to create such code.
Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.
The documentation is described in introduction.htm and the index is in index.htm.
Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.
Created 2000.10.5.