GETN_OPTION_COLOR_READONLY_BRANCH

 

Name

GETN_OPTION_COLOR_READONLY_BRANCH

Declaration

#define GETN_OPTION_COLOR_READONLY_BRANCH(_RGB)           _strTemp = _RGB;_tmpNode.SetAttribute(STR_ATTRIB_COLOR_READONLY_TEXT, _strTemp);

Remark

This macro allow user to change the read only text's color for the whole branch

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_BRANCH_ex1()
{
    GETN_BOX(trRoot)
    GETN_STR(Descript, "Tips", "Default read only text color") GETN_READ_ONLY_COLOR
    GETN_BEGIN_BRANCH(Details, "Config")
        GETN_STR(AAA, "Text1", "Read only") GETN_READ_ONLY_COLOR
        GETN_OPTION_COLOR_READONLY_BRANCH(RGB(127,0,64))
        GETN_STR(BBB, "Text2", "Read only") GETN_READ_ONLY_COLOR
    GETN_END_BRANCH(Details)
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

GETN_OPTION_COLOR_BACKGROUND, GETN_OPTION_COLOR_LABEL, GETN_OPTION_COLOR_READONLY

header to Include

GetNBox.h

Reference