2.1.26.9 is_optional_by_dyna_use_checkbox


Description

Returns whether the node is disable by the left checkbox.

Syntax

BOOL is_optional_by_dyna_use_checkbox( TreeNode & tr )

Parameters

tr
[input] The tree node of GetN control

Return

TRUE if the node is valid and disable by the left checkbox, otherwise FALSE

Examples

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");        
        }
    }
}

Remark

See Also

has_dyna_use_checkbox set_dyna_use_checkbox

Header to Included

event_utils.h

Reference