2.3.1.54 GETN_OPTION_COLOR_READONLY


Name

GETN_OPTION_COLOR_READONLY

Declaration

#define GETN_OPTION_COLOR_READONLY(_RGB)			_strTemp = _RGB;_tmpSubNode.SetAttribute(STR_ATTRIB_COLOR_READONLY_TEXT, _strTemp);

Remark

This macro allow user to change default read only text's color.

Parameters

_RGB
[input] color value that might be generated by RGB(r, g, b)

Return

Examples

EX1

#include <GetNbox.h>
void GETN_OPTION_COLOR_READONLY_ex1()
{
    GETN_BOX(trRoot)
    GETN_STR(Descript, "Tips", "Default read only text color") GETN_READ_ONLY_COLOR
    GETN_STR(Command, "Command", "Customized read only text color") GETN_READ_ONLY_COLOR GETN_OPTION_COLOR_READONLY(RGB(127,0,64))
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

GETN_OPTION_COLOR_BACKGROUND, GETN_OPTION_COLOR_LABEL, GETN_OPTION_COLOR_READONLY_BRANCH

Header to Include

GetNBox.h

Reference