This documentation is archived and is not being maintained.
Imagelist.loadIcons Method [AX 2012]
Loads icons from the specified resource into the image list.
public int loadIcons(str moduleName)
Run On
Client
Parameters
-
moduleName
- Type: str
The name of the file from which to load images.
Return Value
Type:
int
0 if the method was successful.
The following example creates a list of images and then loads the images that are contained in the shell32.dll file.
Imagelist list;
list = new Imagelist(Imagelist::iconWidth(),Imagelist::iconHeight());
list.loadIcons('shell32.dll');