Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

list-control-icon-function

Generic function

Summary

Returns the icon function for the specified list control.

Signature

list-control-icon-function list-control => icon-function

Arguments

list-control
An instance of <list-control>.

Values

icon-function
An instance of type <function>.

Library

duim-gadgets

Module

duim-gadgets

Description

Returns the icon-function for list-control. This function lets you specify which icon to display for each item in the control. The function is called with the item that needs an icon as its argument, and it should return an instance of <image> as its result. Typically, you might want to define an icon function that returns a different icon for each kind of item in the control. For example, if the control is used to display the files and directories on a hard disk, you would want to return the appropriate icon for each registered file type.

Note that, unlike tree controls, the icon function for a list control can be changed once the list control has been created.

See also

<list-control>, page 601

list-control-icon-function-setter, page 605


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index