TCustomImageList.RegisterResolutions procedure
Registers image resolutions (sizes) to use in the image list.
Declaration
procedure RegisterResolutions(const AResolutionWidths: Array of Integer)
; virtualArguments
AResolutionWidths | Array of image resolutions to allocate in the image list. |
Description
RegisterResolutions is a procedure used to register image
resolutions (or sizes) used in the image list. RegisterResolutions allows
TCustomImageListResolution instances to be created and stored in
the image resolution container for the image list.
AResolutionWidths is an array of Integer values that contains the
icon widths for the image resolutions used in the image list. Each image
width is passed as an argument to the
GetResolution method. This
locates the image resolution class instance if it already exists, or creates
a new one when needed. The
AutoCreatedInDesignTime property in the
image resolution is set to
False to show that the resolution was
created at run-time.
Use RegisterResolutions prior to adding images to the image list
at run-time.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
