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
 GETN: adding events dynamically
 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 - 07/27/2018 :  06:47:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: win10

Hi,

I have a GETN in which a part is built dynamically, as in:

for (int ii=0; ii<dsRange.GetSize(); ii++)
{
	TreeNode trCheck = testTree.Multi.AddNode("dp" + ii, TRGP_CHECK);
	trCheck.SetAttribute(STR_LABEL_ATTRIB, dsRange[ii]);
	trCheck.nVal = 1; 
}


For each of those checkboxes, I 'd like to add an event, like GETN_OPTION_EVENT_EX(Dialog_Event)

How can I do that ?

thanks

Edited by - couturier on 07/27/2018 06:49:29 AM

couturier

France
291 Posts

Posted - 07/27/2018 :  6:57:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
OK, I could find it by myself.

For anybody out there looking for similar solution:

for (int ii=0; ii<dsRange.GetSize(); ii++)
{
	TreeNode trCheck = testTree.Multi.AddNode("dp" + ii, TRGP_CHECK);
	trCheck.SetAttribute(STR_LABEL_ATTRIB, dsRange[ii]);
	trCheck.nVal = 1;
	trCheck.SetAttribute(STR_ATTRIB_HANDLER_RC, Dialog_Event)
}
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