2.3.1.18 GETN_COLOR_CHOICE_OPTIONS


Name

GETN_COLOR_CHOICE_OPTIONS

Declaration

#define GETN_COLOR_CHOICE_OPTIONS(_OPTIONS)						_tmpSubNode.SetAttribute(STR_ATTRIB_COLOROPTIONS, _OPTIONS);

Remark

Sets the color choice options to display different choices in the selection box.

Parameters

_OPTIONS
option bits to indicate which choices are legal. Could be one of the following bits defined on OC_Const.h
COLORLIST_AUTO,COLORLIST_NONE,COLORLIST_SINGLE,COLORLIST_CUSTOM,COLORLIST_INCREMENT,COLORLIST_INDEX,COLORLIST_DIRECTRGB,COLORLIST_COLORMAP,COLORLIST_INCREMENT_LIST, etc.

Return

Examples

EX1

#include <GetNBox.h>
void GETN_COLOR_CHOICE_OPTIONS_ex1()
{
	GETN_TREE(tr)
	
	GETN_COLOR(clr, "Color", 0)	GETN_COLOR_CHOICE_OPTIONS(COLORLIST_CUSTOM )
	
	if(GetNBox(tr, NULL, NULL, NULL, NULL))
        out_tree(tr);
}

See Also

GETN_COLOR

Header to Include

GetNbox.h

Reference