GETN_OPTION_COLOR_READONLY_BRANCH
#define GETN_OPTION_COLOR_READONLY_BRANCH(_RGB) _strTemp = _RGB;_tmpNode.SetAttribute(STR_ATTRIB_COLOR_READONLY_TEXT, _strTemp);
This macro allow user to change the read only text's color for the whole branch
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; }
GETN_OPTION_COLOR_BACKGROUND, GETN_OPTION_COLOR_LABEL, GETN_OPTION_COLOR_READONLY
GetNBox.h