BBjWindow::setIcon

Description

In BBj 3.00 and higher, this method assigns an icon to the BBjWindow.

Syntax

Return Value

Method

void

setIcon(string filename$)

void

setIcon(string filename$, int index)

void

setIcon(BBjImageimage!)

Parameters

Variable

Description

filename

Specifies the string representing the filename of the Icon file.

index

For Windows .ico files, this selects a specific image from the file.

image

In BBj 5.0 and higher, specifies a BBjImage object that contains an icon.

Return Value

None.

Remarks

If index is omitted, then the first icon in the specified file is used.

Example

rem ' BBjWindow::setIcon

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjWindow::setIcon"
window! = sysgui!.addWindow(100,100,250,100,title$,$00090003$)
window!.setIcon("bbj.ico",0)
window!.setCallback(window!.ON_CLOSE,"eoj")

process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

MINICON Mnemonic - Create Window Icon (SYSWINDOW)

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