BBjFormPage::newFrame

Description

In BBj 4.0 and higher, this method obtains a new BBjFormFrame object.

Syntax

Return Value

Method

BBjFormFrame

newFrame()

BBjFormFrame

newFrame(double x, double y, double width, double height)

Parameters

Variable

Description

x

Horizontal position of the upper left-hand corner of the element.

y

Vertical position of the upper left-hand corner of the element.

width

Width of the element.

height

Height of the element.

Return Value

Returns a new BBjFormFrame object.

Remarks

None.

Example

REM Get a new frame

REM Obtain the instance to the BBjAPI object
myAPI!=BBjAPI()

REM Obtain an instance of a default BBjPrinter object
LET myBBjPrinter!=myAPI!.getBBjPrinter(0)

REM Get BBjForm for the selected printer
LET myBBjForm!=myBBjPrinter!.getForm(1)

REM Get a new page
LET myBBjFormPage!=myBBjForm!.createPage()

REM Get a new frame
LET frame!=myBBjFormPage!.newFrame()

RELEASE

See Also

BBjAPI

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