BBjSysGui::makeFont

Description

Creates a BBjFont object from the specified parameters.

Syntax

Return Value

Method

BBjFont

makeFont(string name, int size, int style)

Parameters

Variable

Description

name

Specifies the font name. The following are the available font families that Java provides and are installed with BBj. There may be other fonts available depending upon the fonts that are installed on your system:

  • Helvetica

  • Times Roman

  • Courier

  • Dialog

  • Symbol

  • Serif

  • Sans Serif

  • Monospaced (fixed from VPRO/5)

size

Specifies the font size.

style

A constant accessed from the BBjSysGui or BBjAPI object.

 

Style

PLAIN

BOLD

ITALIC

UNDERLINE

Number

0

1

2

16

Return Value

All versions of the makeFont method return a BBjFont object.

Example

sysgui! = bbjapi().openSysGui("X0")
font! = sysgui!.makeFont("Courier New",12,BBjFont.FONT_BOLD)
print font!

See Also

BBjAPI

BBjWindow

BBjFont

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