GETN_READ_ONLY_COLOR

 

Name

GETN_READ_ONLY_COLOR

Declaration

#define GETN_READ_ONLY_COLOR                                        GETN_READ_ONLY_EX(ENABLE_READ_ONLY)

Remark

Set the color of the box created in the dialogbox.

This macro only affects its preceding line.

Examples

EX1

#include <GetNbox.h>
void GETN_READ_ONLY_COLOR_ex1()
{
        GETN_TREE(testTree) 
        
        GETN_STR(WksName, "Worksheet Name:", "This is a test")
        GETN_READ_ONLY  // 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_COLOR    // Read only and with color
        
        if(GetNBox(testTree))
                out_tree(testTree);
}

See Also

GETN_READ_ONLY, GETN_READ_ONLY_EX

Header to Include

GetNbox.h

Reference