Returns the status of left checkbox
int GetN_get_left_checkbox( TreeNode & tr )
Returns the one of the following: 0 = uncheck, 1 = check, -1 = no checkbox
EX1
#include <GetNBox.h> void GetN_get_left_checkbox_Ex() { GETN_TREE(testTree) //auto checkbox double dAutoValue = 1; GETN_NUM(start, "Start Time", dAutoValue) GETN_ADD_AUTO(1) SET_AUTO_VALUE(dAutoValue) //left checkbox //GETN_CONTROL_OPTION_BOX and GETN_ADD_LEFT_CHECK are the same GETN_STR_GROUP(ctrlh, "Uncheck to hide", "A", "|A|C|R|V|Y") GETN_CONTROL_OPTION_BOX(0) GETN_NUM(ctrle, "Uncheck to disable", 1.23) GETN_ADD_LEFT_CHECK(0) GETN_ADD_LEFT_CHECK_TYPE(DYNA_USE_CHECK_TYPE_ENABLE) if(GetNBox(testTree, NULL, NULL, NULL, NULL)) { //show how to reset the value to auto value TreeNode trAuto = testTree.end; tree_check_replace_auto(testTree.end, dAutoValue); //show how to get the status of left checkbox if( 0 == GetN_get_left_checkbox(testTree.ctrlh) ) testTree.RemoveChild("ctrlh"); //another way to get if( tree_is_left_checkbox_checked(testTree.ctrle) ) out_str("ctrle is checked"); out_tree(testTree); } }
tree_is_left_checkbox_checked
GetNBox.h