GETN_READ_ONLY_EX

 

Name

GETN_READ_ONLY_EX

Declaration

#define GETN_READ_ONLY_EX(_MODE)                          _tmpSubNode.Enable = _MODE;

Remark

Set the box created in the dialogbox read only or editable state.

This macro only affects its preceding line.

Parameters

_MODE
the state of the box in dialogbox. can be 1 of editable, 0 for read only, 2 for read only and
also set the read only color

Return

Examples

EX1

#include <GetNbox.h>
void GETN_READ_ONLY_EX_ex1()
{
        GETN_TREE(testTree) 
        GETN_STR(WksName, "Worksheet Name:", "This is a test")
        GETN_READ_ONLY_EX(0)     // string worksheet name should be read only

        GETN_STR(readOnly, "Testing item: ReadOnly", "Can modify")
        GETN_READ_ONLY_EX(1)     // string worksheet name should be editable

        GETN_STR(readOnly, "Testing item: ReadOnly", "Cann't modify")
        GETN_READ_ONLY_EX(2)     // Read only and with color
        if(GetNBox(testTree))
                out_tree(testTree);
}

See Also

GETN_READ_ONLY, GETN_READ_ONLY_COLOR

header to Include

GetNbox.h

Reference