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 Branch
 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 - 01/05/2015 :  1:30:49 PM  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

It is possible to add button, checkbox or combo box to a Getn branch.
Is it possible to add a string or numeric edit box to a getn branch ?

Thanks

eparent

118 Posts

Posted - 01/05/2015 :  2:39:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Is the following example what you are trying to do?


#include <GetNbox.h>
void GETN_BRANCH_Example()
{
	GETN_TREE(testTree)

	GETN_CHECK(CheckBox1, "Check Box One", 0)
	GETN_BEGIN_BRANCH(Branch1, "My Branch")//Match GETN_END_BRANCH
		GETN_OPTION_BRANCH(GETNBRANCH_OPEN) //open the branch, on showing
		GETN_CHECK(CheckBox2, "Check Box Two", 0)
		GETN_COMBO(ComboBox1, "Combo Box One", 1, "|0|1|2")
		GETN_NUM(NumEditBox, "Numeric Edit Box One", 12.3)
		GETN_STR(StrEditBox, "String Edit Box One", "This is a test")
		GETN_BUTTON(FilePathButton, "File Path Button", GetAppPath())
	GETN_END_BRANCH(Branch1)    //Match GETN_BEGIN_BRANCH
	GETN_NUM(NumEditBox2, "Another Numeric Edit Box", 20)

	if(GetNBox(testTree, NULL, NULL, NULL, NULL))
		out_tree(testTree);
}


All the GETN macros are documented at http://www.originlab.com/doc/OriginC/ref/GetN-OriginC
Go to Top of Page

couturier

France
291 Posts

Posted - 01/05/2015 :  4:42:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for your answer but this wasn't the question:

I know about GETN_BUTTON_BRANCH, GETN_CHECKBOX_BRANCH and GETN_COMBO_BRANCH but I was wondering if it was possible to have a string or numeric edit box on the same line that branch
Go to Top of Page

eparent

118 Posts

Posted - 01/07/2015 :  10:58:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry for misreading your question. There is currently no way to put a string nor numeric edit box onto a branch node. I was hoping it would be possible to make a new macro but there would still be internal code changes needed.

quote:
Originally posted by couturier

Thanks for your answer but this wasn't the question:

I know about GETN_BUTTON_BRANCH, GETN_CHECKBOX_BRANCH and GETN_COMBO_BRANCH but I was wondering if it was possible to have a string or numeric edit box on the same line that branch

Go to Top of Page

BettyMark

USA
1 Posts

Posted - 01/30/2015 :  06:30:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks all for your contribution in this forum.
Go to Top of Page

maryjames

USA
1 Posts

Posted - 02/04/2015 :  07:21:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you (eparent) for sharing your suggestion.
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