BBjImageManager::addImageList
Description
In BBj 6.00 and higher, this method registers a BBjImage object as an image list, making it available to the sysgui.
Syntax
Return Value |
Method |
int |
addImageList(int imageWidth, BBjImage image!) |
Parameters
Variable |
Description |
imageWidth |
The width of an individual image in the image list. |
image |
A BBjImage as returned by one of the loadImageFromXXX() methods on BBjImageManager. |
Return Value
Returns a unique integer that represents the image list ID.
Remarks
This is the object method equivalent to the IMAGELIST Mnemonic. This method will return an integer that can then be passed into the methods or mnemonics that take an image list id, such as BBjTabCtrl::setImageListID(), or BBjGrid::setColumnHeaderCellIcon(). Methods that refer to an image list id and an image list index will show an image that represents a "slice" of the image passed into addImageList(), where the imageWidth parameter specifies the width of each slice.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.