Function TWPImageList.FillImagelist(aImageList:TImageList; BackgroundColor:TColor) : Boolean

Unit: WPUtil
Class: WPUtil.TWPImageList

Parameters

  • aImageList:TImageList
  • BackgroundColor:TColor

Returns

The type of the result value is Boolean.

Description

This method clears the image list and fills with icons from the PNG resources. It applies the background color. The image list should not paint transparently, since the legazy transparancy produces bad results. The source images are selected according to the windth and height property of aImageList.