of_setFont

Description

Sets the font face and size of the text display for the groupBox.

Syntax

window/userObject level
of_setFont(String fontFace, Long fontSize)
dataWindow level
of_setFont(Long item, String fontFace, Long fontSize)
of_setFont(String item, String fontFace, Long fontSize)

Parameter(s)

Name Type Description
item Long or String The name or index of the item to which the font settings are to be applied. The text of the item is the text the programmer gave when of_addGroupBox or of_replaceGroupBox was called. The index of the item is the same as the value returned when of_addGroupBox or of_replaceGroupBox was called
fontFace String A string containing the name of the font face
fontSize Long A Long containing the point size of the font. Font Size is not yet supported, a point size of 8 is used for all calls

Return Value

None

Usage

When the method is called from a window/userObject level groupBox, there is no item parameter. When the method is called from a dataWindow level, the item is required to locate the correct groupBox.

Examples

n_cst_groupBox   lnvo_groupBox
lnvo_groupBox    = CREATE n_cst_groupBox

lnvo_groupBox.of_register(dw_mine)

Long             ll_item
ll_item          = lnvo_groupBox.of_addGroupBox('Settings')

lnvo_groupBox.of_setFont(ll_item, 'MS Sans Serif', 10)

DESTROY lnvo_groupBox

See Also

Last edited Oct 17, 2016 at 2:28 PM by cjharris02892, version 4