BBjSysGui::setContext

Description

Sets the current context of the SysGui device to the specified context.

Syntax

Return Value

Method

void

setContext(int contextID)

Parameters

Variable

Description

contextID

Specifies the context of the window.

Return Value

None.

Remarks

None.

Example

rem 'Set the current context of the SysGui device

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

rem 'Set the current context
mySysGui!.setContext(CONTEXT)

See Also

BBjAPI

BBjWindow

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