BBjImageCtrl::setImage

Description

Sets the BBjImage object associated with this BBjImageCtrl.

Syntax

Return Value

Method

void

setImage(BBjImage image!)

Parameters

Return Value

Method

image!

The image to display in the BBjImageCtrl.

Return Value

None.

Remarks

None.

Example

LET myAPI!=BBjAPI()

SYSGUI=UNT
OPEN (SYSGUI) "X0"

LET mySysGui!=myAPI!.getSysGui()

REM Set the current context
mySysGui!.setContext(0)

myWindow! = mySysGui!.addWindow(10,10,200,200,"Window")

image! = mySysGui!.getImageManager().loadImageFromFile("bbj.ico")
imageCtrl! = myWindow!.addImageCtrl(5,10,10,40,40,image!)

image! = mySysGui!.getImageManager().loadImageFromFile("find.ico")
imageCtrl!.setImage(image!)

See Also

BBjAPI

BBjSysGui

BBjImage

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.