Class
choice that displays its items as icons and text in a number of formats. view Specifies which view the list view pane shows. The default is:icon.
subitem-functionReturns additional information to be displayed in report view.
subitem-print-functionsUsed in report view to print the additional information.
image-functionReturns an image for an item
state-image-functionReturns a state image for an item.
columnsDefines the columns used in report view
auto-reset-column-widthsDetermines whether columns automatically resize. Defaults to:all.
use-large-imagesIndicates whether large icons will be used (generally only if the icon view will be used). Defaults tot.
use-small-imagesIndicates whether small icons will be used. Defaults tot.
use-state-imagesIndicates whether state images will be used. Defaults tonil.
large-image-width Width of a large image. Defaults to 32.
large-image-heightHeight of a large image. Defaults to 32.
small-image-widthWidth of a small image. Defaults to 16.
small-image-heightHeight of a small image. Defaults to 16.
state-image-width Width of a state image. Defaults tosmall-image-width.
state-image-heightHeight of a state image. Defaults tosmall-image-height.
list-view-view
list-view-subitem-function
list-view-subitem-print-functions
list-view-image-function
list-view-state-image-function
list-view-columns
list-view-auto-reset-column-widths
choice. In many ways it may be regarded as a kind of enhanced list panel, although its behavior is not identical. It supports single selection and extended selection operation. :view initarg, and subsequently changed by(setf list-view-view). An application may use the list view pane in just a single view, or may change the view between all four available views. :iconIn this view, large icons are displayed, together with their label, positioned in the space available.
:small-iconIn this view, small icons are displayed, together with their label, positioned in the space available.
:listIn this view, small icons are displayed, arranged in vertical columns.
:reportIn this view, multiple columns are displayed. A small icon and the item's label is displayed in the first column. Additional pieces of information, known as subitems, are displayed in subsequent columns.
To use the report view,:columns must specify a list of column specifiers. Each column specifier is aplist, in which the following keywords are valid:
:titleThe column heading
:width The width of the column in pixels. If this keyword is omitted or has the valuenil, the width of the column is automatically calculated, based on the widest item to be displayed in that column.
:align May be:left,:right or:center to indicate how items should be aligned in this column. The default is:left. Only left alignment is available for the first column.
sub-item-function is called on the item to return subitem objects that represent the additional information to be displayed in the subsequent columns. Hence, thesubitem-function should normally return a list, whose length is one less than the number of columns specified. Each subitem is then printed in its column using the appropriate subitem print function. Thesubitem-print-functions may be either a single print function, to be used for all subitems, or a list of functions: one for each subitem column. choice-print-function. image-function is called on an item to return an image associated with the item. It can return one of the following: This specifies the filename of a file suitable for loading withgp:load-image. Currently this must be a bitmap file.
The symbol must have been previously registered by means of a call togp:register-image-translation.
As returned bygp:load-image.
Allowing a single bitmap to be created which contains several button images side by side. See make-image-locator for more information. On Windows, this also allows access to bitmaps stored as resources in a DLL.
This is a zero-based index into the list view's image list. This is generally only useful if the image list is created explicitly. See image-list for more details.
state-image-function is called on an item to determine the state image, an additional optional image used to indicate the state of an item. It can return one of the above, ornil to indicate that there is no state image. State images may be used in any view, but are typically used in the report and list views. :image-lists is specified, it should be a plist containing the following keywords as keys. The corresponding values should beimage-list objects. :normal Specifies an image-list object that contains the large item images. Theimage-function should return a numeric index into this image-list.
:smallSpecifies an image-list object that contains the small item images. The image-function should return a numeric index into this image-list.
:state Specifies an image-list object that contains the state images. Thestate-image-function should return a numeric index into this image-list
:image-listsinitarg, and theimage-function must return an integer. Care must be taken to ensure that corresponding images in the:normal and:smallimage lists have the same numeric index. This restriction will be relaxed in a future release. image-listlist-panelmake-image-locator