Add a checkbox to the right of GetN control.
void octree_set_auto_support(TreeNode* tr, int nVal = 1)
enum { AUTO_UNCHECKED = -1, AUTO_NOT_SUPPORT, AUTO_CHECKED };
EX1
#include <GetNBox.h> void octree_set_auto_support_ex1() { GETN_TREE(tr) GETN_BUTTON(Path, "File path", GetAppPath()) TreeNode trN = tr.Path; octree_set_auto_support(&trN, 1); if( GetNBox(tr) ) // open the GetN dialog { // enter here if clicked OK button to close dialog trN = tr.Path; int nCheckStatus = octree_get_auto_support(&trN); string strAuto = AUTO_CHECKED == nCheckStatus ? "checked" : "not checked"; out_str( strAuto ); } }
octree_get_auto_support
OCTreeUtils.h