BBjWindow::setIcons

Description

IIn BBj 16.0 and higher, this method assigns multiple icons to a BBjWindow.

 

Syntax

Return Value

Method

void

setIcons(BBjVector images!)

Parameters

Variable

Description

images!

A BBjVector of BBjImage objects.

Return Value

None.

Remarks

Native windowing systems may use different images of differing dimensions to represent a window, depending on the context (e.g. window decoration, window list, taskbar, etc.). They could also use just a single image for all contexts or no image at all.

Example

rem ' BBjWindow::setIcons

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjWindow::setIcons"
window! = sysgui!.addWindow(100,100,250,100,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
print "BBjWindow::getIcons: ",window!.getIcons()
imagemanager! = sysgui!.getImageManager()
vector! = bbjapi().makeVector()
window!.setIcons(vector!)
print "BBjWindow::getIcons: ",window!.getIcons()
vector!.add(imagemanager!.loadImageFromFile("config.ico"))
vector!.add(imagemanager!.loadImageFromFile("bbj.ico"))
window!.setIcons(vector!)
print "BBjWindow::getIcons: ",window!.getIcons()

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.