Returns whether the node is disable by the left checkbox.
BOOL is_optional_by_dyna_use_checkbox( TreeNode & tr )
TRUE if the node is valid and disable by the left checkbox, otherwise FALSE
EX1
#include <GetNbox.h> #include <event_utils.h> void is_optional_by_dyna_use_checkbox_ex() { GETN_TREE( tr ); GETN_BEGIN_BRANCH(Details, "Details") GETN_BRANCH_OPTION_BOX(true) GETN_STR(STR, "Tips", "Nothing") GETN_END_BRANCH(Details) set_dyna_use_checkbox(tr.Details, 0); if( GetNBox( tr )) { TreeNode trNode = tr.Details; if( has_dyna_use_checkbox(trNode) ) { bool bOptional = is_optional_by_dyna_use_checkbox(trNode); printf("Node %s optional\n", bOptional? "is" : "isn't"); } } }
has_dyna_use_checkbox set_dyna_use_checkbox
event_utils.h