BBjSysGui::getContextList

Description

In BBj 24.00 and higher, this method returns a BBjVector of integer context numbers for all active BBjWindow objects (BBjTopLevelWindow or BBjChildWindow).

Syntax

Return Value Method
BBjVector getContextList()

Parameters

None.

Return Value

This method returns a BBjVector of integer context numbers for all active BBjWindow objects (BBjTopLevelWindow or BBjChildWindow).

Example

REM Obtain a list of all active integer context numbers.

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")

print mySysGui!.getContextList()

escape

ClosedVersion History

  • BBj 24.00: BBjSysGui::getContextList added.

See Also

BBjAPI

BBjWindow

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