Skip to content

AddImageType - cCJGrid

Adds an icon, bitmap or cursor to the grid's image list

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
bIsIcon Boolean If True, image is an icon. If False, image is a bitmap.
sImage String Relative name of image to be found in filepath or resource.
iId Integer Unqiue integer identifier. If zero, the Id will be auto assigned.

Syntax

Function AddImageType Boolean bIsIcon String sImage Integer iId Returns Integer

Call Example

Get AddImageType bIsIcon sImage iId to IntegerVariable

Description

Adds an icon, bitmap or cursor to the grid's image list. The image type is determined by the file extension in the passed image name: .bmp, .ico, .jpg, .png, .gif are all supported.

The AddImage function performs the same operation without the need to specify the image type.

Return Value

The return value is the index of the image that was added. If the image could not be added, 0 is returned.