BBjButton::setImageFile

Description

Sets the icon to be displayed in the BBjButton.

Syntax

Return Value

Method

void

setImageFile(string file)

Parameters

Variable

Description

file

Name of the file that contains the image to be displayed in the button.

Return Value

None.

Remarks

Use the full path to the file or a file that is in the PREFIX.

Example

rem ' BBjButton::setImageFile Example

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

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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