2.3.1.79 GETN_READ_ONLY


Name

GETN_READ_ONLY

Declaration

#define GETN_READ_ONLY							_tmpSubNode.Enable = false;

Remark

Set the box created in the dialogbox read only.

This macro only affects its preceding line.

Examples

EX1

#include <GetNbox.h>
void GETN_READ_ONLY_ex1()
{
    GETN_TREE(testTree) 
	GETN_STR(WksName, "Worksheet Name:", "This is a test")
	testTree.WksName.Enable = false;	// string worksheet name should not be editable

	GETN_STR(readOnly, "Testing item: ReadOnly", "Cann't modify")
	GETN_READ_ONLY	// string worksheet name should be read only
	if(GetNBox(testTree))
	out_tree(testTree);
}

See Also

GETN_READ_ONLY_COLOR, GETN_READ_ONLY_EX

Header to Include

GetNbox.h

Reference