2.3.1.59 GETN_OPTION_COLOR_BACKGROUND


Name

GETN_OPTION_COLOR_BACKGROUND

Declaration

#define GETN_OPTION_COLOR_BACKGROUND(_RGB)		_strTemp = _RGB;_tmpSubNode.SetAttribute(STR_ATTRIB_BKGRND_COLOR, _strTemp);

Remark

Set the label background color in the dialog box.Only affect the preceding line.

Parameters

_RGB
[input] the specified color; for example: COLOR_ORANGE means orange color.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_OPTION_COLOR_BACKGROUND_ex1()
{
    GETN_TREE( treeTest );
    GETN_NUM(decayT1, "Number1", 12.3)
       GETN_OPTION_COLOR_BACKGROUND( COLOR_GREEN )
    if( GetNBox( treeTest ))
        out_tree( treeTest );
}
/// The background of num control Number1 should be green.

See Also

GETN_OPTION_COLOR_LABEL, GETN_OPTION_COLOR_READONLY, GETN_OPTION_COLOR_READONLY_BRANCH

Header to Include

GetNbox.h

Reference