BBjSysGui::makeFont

Description

Creates a BBjFont object from the specified parameters.

Syntax

Return Value Method
BBjFont makeFont(string name, int size, int style)

Parameters

Parameter 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 BBjFont object.
Font StyleValue
FONT_PLAIN0
FONT_BOLD1
FONT_ITALIC2
FONT_UNDERLINE16
FONT_STRIKEOUT512

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.