Imagelist Class
Enables the manipulation of a list of images.
Syntax
class Imagelist extends BinData
Run On
Client
Methods
Method | Description | |
---|---|---|
add | Adds a new image to the image list. | |
appendData | (Inherited from BinData.) | |
appendToFile | (Inherited from BinData.) | |
ascii85Encode | (Inherited from BinData.) | |
autoResize | Sets the Boolean flag autoResize, which determines whether new images are automatically resized. | |
base64Encode | (Inherited from BinData.) | |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
clear | Removes all images from the image list. | |
compressLZ77 | (Inherited from BinData.) | |
copyData | (Inherited from BinData.) | |
count | Retrieves the number of images in an image list. | |
decompressLZ77 | (Inherited from BinData.) | |
dragBegin | Begins dragging an image. | |
dragEnd | Ends a drag operation. | |
dragEnter | Locks updates to the specified window during a drag operation and displays the drag image at the specified position in the window. | |
dragLeave | Unlocks the specified window and hides the drag image, enabling the window to be updated. | |
dragMove | Moves the image that is being dragged during a drag-and-drop operation. | |
dragShowImage | Shows or hides the image that is being dragged. | |
draw | Draws an image list item in the specified device context. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
finalize | (Overrides the finalize Method.) | |
getAsciiData | (Inherited from BinData.) | |
getData | (Inherited from BinData.) | |
getStrData | (Inherited from BinData.) | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
getVariant | (Inherited from BinData.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
height | Retrieves the height of the images in the image list in pixels. | |
loadFile | (Inherited from BinData.) | |
loadIcons | Loads icons from the specified resource into the image list. | |
maskColor | Sets the masking color. | |
new | Creates a new empty list to contain images. (Overrides the new Method.) | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
remove | Removes an image from an image list. | |
replace | Replaces an existing image in the list. | |
saveFile | (Inherited from BinData.) | |
setAsciiData | (Inherited from BinData.) | |
setBinaryData | (Inherited from BinData.) | |
setData | (Inherited from BinData.) | |
setOverlayImage | Adds an image to the list of images to be used as overlay masks. | |
setStrData | (Inherited from BinData.) | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
setVariant | (Inherited from BinData.) | |
size | (Inherited from BinData.) | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
wait | Pauses a process. (Inherited from Object.) | |
width | Retrieves the width of the images in the image list in pixels. | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::iconHeight | Retrieves the system metrics for the height of a standard icon. | |
::iconWidth | Retrieves the system metrics for the width of a standard icon. | |
::smallIconHeight | Retrieves the system metrics for the height of a small icon. | |
::smallIconWidth | Retrieves the system metrics for the width of a small icon. |
Top
Remarks
If you want to manipulate a single image, use the Image class.
Examples
The following example creates an image list and adds the icons in the Shell32.dll file. It then deletes the fourth member of the list.
Imagelist list = new Imagelist(
Imagelist::iconWidth(),
Imagelist::iconHeight() );
list.loadIcons('shell32.dll');
print list.count();
list.remove(4);
print list.count();
pause;
Inheritance Hierarchy
Object Class
BinData Class
Imagelist Class