of_setBackColor

Description

Change the background color of the groupBox.

Syntax

window/userObject level
of_setBackColor(Long red, {Integer green}, {Integer blue})
of_setBackColor(Long color)
dataWindow level
of_setBackColor(Long item, Long red, {Integer green}, {Integer blue})
of_setBackColor(String item, Long color)

Parameter(s)

Name Type Description
item Long or String The name or index of the item for which the backGround color is to set. 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.
red or color Long The red component of an RGB color, otherwise, a long containing the color to be used as the background.
green Integer The green component of an RGB color. This parameter is optional.
blue Integer The blue component of an RGB color. This parameter is optional.

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

window/userObject level
of_setBackColor(255, 0, 0)

of_setBackColor(33554432)
dataWindow level
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_setBackColor('Settings', RGB(255, 0, 0))

DESTROY lnvo_groupBox

Last edited Sep 27, 2016 at 1:07 PM by cjharris02892, version 5