2.1.26.53 tree_is_left_checkbox_checked


Description

Returns whether the left checkbox of the node is checked.

Syntax

bool tree_is_left_checkbox_checked( TreeNode & trN )

Parameters

trN
[input] The tree node of GetN control

Return

false if the node is invalid or the left checkbox is unchecked, otherwise true

Examples

EX1

#include <GetNbox.h>
void tree_is_left_checkbox_checked_ex()
{
    GETN_TREE( tr );
    GETN_NUM(Min, "Min", 0) 
        GETN_ADD_LEFT_CHECK(false)
        GETN_ADD_LEFT_CHECK_TYPE(DYNA_USE_CHECK_TYPE_ENABLE)
    GETN_NUM(Max, "Max", 100) 
        GETN_ADD_LEFT_CHECK(false)
        GETN_ADD_LEFT_CHECK_TYPE(DYNA_USE_CHECK_TYPE_SHOW)
    
    if( GetNBox( tr ))
    {
        out_tree( tr );
        
        foreach(TreeNode tn in tr.Children)
        {
            bool bCheck = tree_is_left_checkbox_checked(tn);
            printf("%s is %s\n", tn.tagName, bCheck? "checked" : "unchecked");
        }
    }
}

Remark

See Also

GETN_ADD_LEFT_CHECK

Header to Included

origin.h

Reference