BBjSysGui::addImageList

Description

In BBj 5.00 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.