Author |
Topic  |
|
couturier
France
291 Posts |
Posted - 07/26/2016 : 2:04:38 PM
|
Origin Ver. and Service Release (Select Help-->About Origin): 2016 Operating System:7
Is there any trick for using octree_set_auto_support with a GETN_LIST ?
Help says "For now GETN_BUTTON, GETN_LIST, GETN_NUM, GETN_BEGIN_BRANCH control support the checkbox".
in following example, it works fine with GETN_BUTTON and GETN_NUM, but doesn't with GETN_LIST
void octree_set_auto_support_ex1() { double ff=1.23; string str="test1|test2|test3"; GETN_TREE(tr) GETN_BUTTON(Path, "File path", GetAppPath()) GETN_NUM(NumVal, "Scale Factor", ff) GETN_LIST(list, "LIst", 0, str) TreeNode tr1 = tr.Path; octree_set_auto_support(&tr1, -1); //-1 uncheck, 0 not visible, 1 check TreeNode tr2 = tr.NumVal; octree_set_auto_support(&tr2, -1); //-1 uncheck, 0 not visible, 1 check TreeNode tr3 = tr.list; octree_set_auto_support(&tr3, -1); //-1 uncheck, 0 not visible, 1 check if( GetNBox(tr) ) // open the GetN dialog { // enter here if clicked OK button to close dialog tr1 = tr.Path; int nCheckStatus = octree_get_auto_support(&tr1); string strAuto = AUTO_CHECKED == nCheckStatus ? "checked" : "not checked"; out_str( strAuto ); } }
|
|
yuki_wu
896 Posts |
Posted - 08/09/2016 : 05:57:19 AM
|
Hi,
I am sorry that it is a bug.
We have added this problem to our bug tracking database, ID ORG-15102, and will improve it in the future. Sorry for the inconvenience.
Yuki OriginLab
|
 |
|
yuki_wu
896 Posts |
Posted - 11/14/2017 : 03:56:31 AM
|
Hi couturier and who noticed this post,
The bug mentioned in this post has been fixed in Origin 2018, and we have just released Origin 2018 last week. You can upgrade or download a demo to see how it works: http://www.originlab.com/index.aspx?s=12&lm=62
Of course, we have many other improvements and new features in Origin 2018. You can visit Originlab.com/2018 for more info.
Thanks, Yuki OriginLab
|
Edited by - yuki_wu on 11/14/2017 04:17:42 AM |
 |
|
|
Topic  |
|
|
|