Search Locate Previous Next Contents

Image List (IL)


Description
Creates an imagelist for use by trees and list-view controls. Make sure it is in the tab-order before any control that uses it!

Icons – a vector of icon names (simple vector acceptable).

IconSize – required size (larger icons are scaled).

Masked – set this to 0 for solid colour artwork

SeeThru – use to switch the transparent colour from light grey

Assign its name on CR then use this as argument to the SetImage function on either the Tree or the ListView. Note that you will need 2 separate lists at different sizes if you need to show both ‘Icon’ and ‘Small Icon’ views in the listview.

You can use external icon objects (xx.ICO files), or it may be more convenient to make a bitstrip in the workspace using the picture editor in which case the default is to use light grey as the transparent colour. If your icons use grey as a genuine colour, you might like to set the SeeThru colour to 13 (bright pink) and use this to mark the transparent areas.

Class Property Table
NameTypeDefaultDescription
IconsRuntimeVector of Icon names
IconSizeInt16Scale icons to this size
MaskedBool1Make transparent images
SeeThruInt8Colour used as transparent in bitmaps


Continue to: Label (LB)
© Copyright Causeway Graphical Systems Ltd 2003