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
 setting attributes in Getn tree

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 - 11/12/2014 : 03:42:26 AM
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
4   L A T E S T    R E P L I E S    (Newest First)
couturier Posted - 11/12/2014 : 08:12:31 AM
Thanks a lot !
Your help is highly appreciated.
Castiel Posted - 11/12/2014 : 07:23:27 AM
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;


©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦
couturier Posted - 11/12/2014 : 06:19:12 AM
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);

SeanMao Posted - 11/12/2014 : 04:31:33 AM
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

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