BBjSysGui::createTopLevelWindow

Description

Creates the top level window identified by windowID on the client, including all controls within that window, from a resource file opened to resHandle.

Syntax

Return Value

Method

BBjTopLevelWindow

createTopLevelWindow(int resHandle,int windowID)

Parameters

Variable

Description

resHandle

Specifies the handle returned by a call to RESOPEN.

windowID

The control id of a top level window contained in the resource referred to by resHandle.

Return Value

Returns a BBjTopLevelWindow object and creates that top level window, and all controls contained within that top level window, on the client.

Remarks

When a foreign interpreter invokes this method, an !ERROR=208 Multi Thread results. See Accessing Objects From Different Interpreters.

Example

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
resource$ = "resource.arc"
window = 101
handle = resopen(resource$)
window! = sysgui!.createTopLevelWindow(handle,window)
escape

See Also

BBjAPI

BBjTopLevelWindow

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