2.1.26.13 octree_get_auto_support


Description

To get the status of auto checkbox.

Syntax

int octree_get_auto_support(TreeNode* tr)

Parameters

tr
[input] The tree node of GetN control. For now GETN_LIST, GETN_NUM, GETN_BEGIN_BRANCH control support the checkbox.

Return

Returns the one of the following:

enum
{
	AUTO_UNCHECKED = -1,
	AUTO_NOT_SUPPORT,
	AUTO_CHECKED
};

Examples

EX1

#include <GetNBox.h>
void octree_get_auto_support_ex1()
{
	GETN_TREE(tr)	
	GETN_SLIDER(slider, "test", 0, "1|100|100")
	
	TreeNode trN = tr.slider;
	octree_set_auto_support(&trN, 1);
	
	GetNBox(tr);
	
	int nCheckStatus = octree_get_auto_support(&trN);
	out_int("", nCheckStatus);
}

Remark

See Also

octree_set_auto_support

Header to Include

OCTreeUtils.h

Reference