BBjImageManager::setDefaultIcon

Description

In BBj 20 and higher, this method sets the BBjImage to be used as the icon for subsequent windows.

Syntax

Return Value

Method

void

setDefaultIcon(BBjImage image)

Parameters

Variable

Description

BBjImage

Images to use as the default window icon for subsequent windows.

Return Value

None.

Remarks

None.

Example

rem ' setDefaultIcon
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
imagemanager! = sysgui!.getImageManager()
image! = imagemanager!.getDefaultIcon()
image! = imagemanager!.loadImageFromFile("BBj.png",err=*next)
url$ = "https://www.basis.cloud/sites/basis.com/files/BBjlogo.gif"
image! = imagemanager!.loadImageFromClientURL(url$)
image! = imagemanager!.loadImageFromServerURL(url$)
image! = imagemanager!.loadImageFromURL(url$)
imagemanager!.setDefaultIcon(image!)
window! = sysgui!.addWindow(100,100,225,225,"setDefaultIcon",$00090003$,$$)
window!.setCallback(window!.ON_CLOSE,"EOJ")
window!.addImageCtrl(101,25,25,image!.getWidth(),image!.getHeight(),image!)
process_events
eoj:
release

See Also

BBjAPI

BBjSysGui

BBjImageManager

BBjImage

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