Sign in Join
FPDoc Onlineexperiment

TCustomImageList.SetWidthHeight procedure

Member of TCustomImageListprotectedIn unit ImgList

Sets the Width and Height for images in the default resolution.

Declaration

pascal
procedure SetWidthHeight(NewWidth: Integer; NewHeight: Integer)

Arguments

NewWidth

New value for the Width property.

NewHeight

New value for the Height property.

Description

SetWidthHeight is a a procedure used to set the values in the Width and Height properties to the values in the NewWidth and NewHeight parameters. Width and Height establish the default resolution (or image size) used in the image list. Changing either of the values in the method causes the image list, its Resolutions, and assigned Overlay images to be discarded by calling the Clear method.

Set the values in the Height and Width properties prior to adding images to the image list. Or, use the CreateSize constructor to specify the default resolution when the image list is created.

SetWidthHeight is used in the implementation of the Assign, SetHeight, and SetWidth methods.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.