GETN_OPTION_INTERACTIVE_CONTROL

 

Name

GETN_OPTION_INTERACTIVE_CONTROL

Declaration

#define     GETN_OPTION_INTERACTIVE_CONTROL(_DW) _tmpSubNode.SetAttribute(STR_INTERACTIVE_CONTROL_OPTIONS_ATTRIB, _DW);

Remark

This macro is used to setup the properties of Data Range controls.

Parameters

_DW
[input] the property options. To get more details of the property options please refer to typedef enum tagINTERACTIVECONTROLOPTIONS in oc_const.h file. For example, ICOPT_RESTRICT_TO_ONE_DATA bit is used to restrict the data range which allows choosing only one data range.

Return

Examples

EX1

#include <GetNBox.h>
void GETN_INTERACTIVE_ex1()
{
    GETN_BOX( treeTest );
    GETN_INTERACTIVE(interactive, "Data Range", "[Book1]Sheet1!B")
    GETN_OPTION_INTERACTIVE_CONTROL(ICOPT_RESTRICT_TO_ONE_DATA) // can only choose one data range.

    if( GetNBox( treeTest ))
        out_tree( treeTest );
}

See Also

GETN_INTERACTIVE, GETN_RANGE, GETN_XYRANGE, GETN_XYRANGE_COMPLEX, GETN_XYZRANGE

header to Include

GetNbox.h

Reference