Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Imagelist Class

Enables the manipulation of a list of images.


class Imagelist extends BinData

Client

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. If set to true, when you add a new image to the list, the image will be automatically resized to the dimensions that were specified when you created the image list.

base64Encode

(Inherited from BinData.)

cancelTimeOut

Cancels a previous method call to the Object.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

Overridden.

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. The height of the images in the list is set when you instantiate the list.

loadFile

(Inherited from BinData.)

loadIcons

Loads icons from the specified resource into the image list.

maskColor

Sets the masking color.

new

Overridden. Creates a new empty list to contain images.

notify

Releases the hold on an object that has called a wait method on this object. (Inherited from Object.)

notifyAll

Releases a lock on the object that was issued by a 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 (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. The width of the images in the list is that is set when you instantiate the list.

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.

If you want to manipulate a single image, use the Image class.

NoteNote

In Microsoft Dynamics AX, the ImageList class is bound to the client. The class can no longer be run from the server because of the security risks that are associated with file handling.


The following example creates an image list, and adds the icons in Shell32.dll. 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;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.