[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Sets the size (width, height) for the image in the Icon.
Source position: graphics.pp line 1664
public procedure TCustomIcon.SetSize( |
AWidth: Integer; |
AHeight: Integer |
); override; |
AWidth |
|
New Width for the icon. |
AHeight |
|
New Height for the icon. |
SetSize is an overridden method used to set the size for the image in the icon to the values specified in AWidth and AHeight. SetSize implements the abstract virtual method defined in the ancestor class. SetSize stores the argument values in an internal member used to track the requested icon image size used in the GetBestIndexForSize method.
SetSize raises an EInvalidGraphicOperation exception when an icon size has been selected by setting a value in the Current property.
SetSize is called from the ReadStream method.
Raises an EInvalidGraphicOperation with the message in rsIconImageSizeChange when Current contains a value other than -1.
|
Ordinal position for the current image displayed for the icon. |
|
|
Reads the content for the icon from the specified stream. |
|
|
Gets the ordinal position for the image closest to the requested size. |
|
|
SetSize - specifies height and width of Image. |
|
|
EInvalidGraphicOperation - exception handler for invalid graphic operation. |
|
Version 3.2 | Generated 2024-02-25 | Home |