BBjSysGui::getWindows

Description

In BBj 8.00 and higher, getWindows(string) returns a BBjVector of all existing BBjWindow objects (BBjTopLevelWindow or BBjChildWindow) with a specified name.

In BBj 23.01 and higher, getWindows() returns a BBjVector of all existing BBjWindow objects (BBjTopLevelWindow or BBjChildWindow).

Syntax

Return Value

Method

BBjVector

getWindows()

BBjVector

getWindows(string name)

Parameters

Variable

Description

name

Specifies the name of a previously created window or windows.

Return Value

getWindows(string) return a BBjVector object that contains all BBjWindows with the specified name.

getWindows() returns a BBjVector of all existing BBjWindow objects (BBjTopLevelWindow or BBjChildWindow).

Remarks

None.

Example

rem 'Obtain multiple BBjWindow objects

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Open the SysGui device
SYSGUI = UNT
OPEN (SYSGUI)"X0"

rem 'Obtain the instance of the BBjSysGui object
let mySysGui! = myAPI!.getSysGui()

rem 'Set common addWindow param values
X = 10
Y = 10
WIDTH = 200
HEIGHT = 200
TITLE$="BBjWindow Example"
CONTEXT = 10

rem 'Create a window with a title in the specified context
myWindow! = mySysGui!.addWindow(CONTEXT,X,Y,WIDTH,HEIGHT,TITLE$)
myWindow!.setName("Form")

rem 'Get the window(s) with the name "Form"
myWindows! = mySysGui!.getWindows("Form")
escape

See Also

BBjAPI

BBjWindow

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