Name
RemoveIconImage -- remove image from icon (V8.0)
Synopsis
RemoveIconImage(id, idx)
Function
This command can be used to remove a single image from the icon specified by id. The image to be removed must be specified by its index using the idx parameter. Indices start at 1 for the first image and run up to the number of images in the icon. You can query the number of images in an icon by using the #ATTRNUMENTRIES attribute with GetAttribute().

Note that the individual images inside icons are sorted by their width in ascending order. This means that the indices passed to RemoveIconImage() aren't necessarily the same as the order of images passed to functions like CreateIcon() or the @ICON preprocessor command.

Since icons must contain at least one image, it's also not allowed to remove the very last image from an icon.

To add images to icons, use the AddIconImage() function.

Inputs
id
identifier of the icon to use
idx
index of the image to remove (starting at 1)
Example
RemoveIconImage(1, 1)
The code above removes the first image from icon 1.

Show TOC