BBjButton::setImage
Description
In BBj 5.0 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
Copy
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
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.