BBjButton::setImage

Description

In BBj 5.00 and higher, this BBjButton method sets the image to display in the button.

Syntax

Return Value

Method

void

setImage(BBjImage image)

Parameters

Variable

Description

image

BBjImage to display in the button.

Return Value

None.

Remarks

The setImage() method does not remove any previously set button text.

Example

rem ' BBjButton::setImage Example

rem ' BBjButton::setImage
sysgui = UNT
OPEN (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjButton::setImage"
window! = sysgui!.addWindow(50,50,250,200,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
button! = window!.addButton(101,50,50,150,50,"BBjButton")
ImageManager! = sysgui!.getImageManager()
image! = ImageManager!.loadImageFromFile("bbj.ico")
button!.setImage(image!)
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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