The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 octree_set_auto_support

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
couturier 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 );
}
}

2   L A T E S T    R E P L I E S    (Newest First)
yuki_wu 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
yuki_wu 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000