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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 setting attributes in Getn tree
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

couturier

France
291 Posts

Posted - 11/12/2014 :  03:42:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2015
Operating System: win7 64bit

I have a GETN dialog that I have to set up with TreeNode.SetAttribute (instead of GETN_STR, GET_LIST ...). I could not figure out how to set up a GETN_INFO node.
Can anyone explain ?

thanks

SeanMao

China
288 Posts

Posted - 11/12/2014 :  04:31:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

GETN_INFO, GETN_HINT, GETN_HINT_EX are three modes to control the display of GETN_STR function.

You can run the example in the link below to see how it works:
http://www.originlab.com/doc/OriginC/ref/GETN_INFO

Regards!

Sean

OriginLab Technical Service
Go to Top of Page

couturier

France
291 Posts

Posted - 11/12/2014 :  06:19:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I know this page but this is not what I'm trying to do.

For example, I can set up a checkbox with
TreeNode tnCheck = myTree.Check.AddNode(test);
tnCheck.SetAttribute(STR_ID_ATTRIB, TRGP_CHECK);
tnCheck.nVal = 1;
tnCheck.SetAttribute(STR_LABEL_ATTRIB, "Check/Uncheck box");

I can set up a string edit box with:
TreeNode tnStr = myTree.NodeEx.AddTextNode("String to show", "NodeID", TRGP_STR);
tnStr.SetAttribute(STR_LABEL_ATTRIB, "Label to show");

I miss the following
tnStr.SetAttribute(Stuff to set node as GETN_INFO);

Go to Top of Page

Castiel

343 Posts

Posted - 11/12/2014 :  07:23:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by couturier

I know this page but this is not what I'm trying to do.

For example, I can set up a checkbox with
TreeNode tnCheck = myTree.Check.AddNode(test);
tnCheck.SetAttribute(STR_ID_ATTRIB, TRGP_CHECK);
tnCheck.nVal = 1;
tnCheck.SetAttribute(STR_LABEL_ATTRIB, "Check/Uncheck box");

I can set up a string edit box with:
TreeNode tnStr = myTree.NodeEx.AddTextNode("String to show", "NodeID", TRGP_STR);
tnStr.SetAttribute(STR_LABEL_ATTRIB, "Label to show");

I miss the following
tnStr.SetAttribute(Stuff to set node as GETN_INFO);





tnStr.Enable = ENABLE_READ_ONLY;


妾+   午旦  妹罕妾  妾伊    用仇  妾/     岫ㄞ
 妾京用 仍巨  件 侈   件戶' 甘岫平   /欠  白岫妹
   併             艮          岫  奈 白   岫
                              岫
Go to Top of Page

couturier

France
291 Posts

Posted - 11/12/2014 :  08:12:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot !
Your help is highly appreciated.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000