BBjSysGui::addImageList

Description

In BBj 5.0 and higher, this method creates a new image list used by various controls, including grids and tabs.

Syntax

Return Value

Method

void

addImageList(int id, int width, BBjImage image)

 

Parameters

Variable

Description

id

The imagelist id is a unique integer. 

width

Width in pixels of the images in the image file.

image

The image.

Return Value

None.

Remarks

None.

Example

REM Create an imagelist

REM Obtain the instance of the BBjAPI object
LET myAPI!=BBjAPI()

REM Open the SysGui device
SYSGUI=UNT
OPEN (SYSGUI)"X0"

REM Obtain the instance of the BBjSysGui object
LET mySysGui!=myAPI!.getSysGui()

REM Obtain the instance of the Image Manager object
LET myImageManager!=mySysGui!.getImageManager()

REM Get the image from a file
LET myImage!=myImageManager!.loadImageFromFile("updown.bmp")

REM Create the imagelist
LET id=1
LET width=8
mySysGui!.addImageList(id,width,myImage!)

See Also

BBjAPI

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.