| Search Locate Previous | Contents |
The picture strip is saved in the workspace as a simple numeric matrix, giving indices into the standard 16-colour map. It can be set as the Icons property of an ImageList object, as an alternative to providing a list of icon file names. If you intend to use the imagelist to make the icons in a TreeView or ListView, it is a good idea to specify masked images here to get the appropriate transparent effect. You will need 2 completely separate sets of artwork to make the large and small icon sets, assuming you enable the Icon view option in the ListView (Tree controls only need a single set of small icons).
Add the necessary imagelist objects to your form, and if necessary use the object sorter in the Designer to get them to the top of the list. A handy trick is to give each imagelist a local name on creation, for example
CR : small¸
then you can set these on creation of any ListView or TreeView objects which use them:
CR : ¸ Do 'SetImage' large small
To use the picture strip in a new-style toolbar (the ToolControl object), simply set it as the value of the Artwork property. Currently, transparency is not supported here, so be sure to use light grey as the background colour. This will be mapped automatically to the Windows button face colour so the bitmaps will blend correctly with the buttons. Each button in the toolbar will pick up the appropriate bitmap, although you can over-ride the sequence if you re-order the buttons and do not want to shuffle the pictures in the list.