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
 GUI for OriginC

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
kineticesp Posted - 08/01/2008 : 6:21:23 PM
Is there a way to build a GUI for my code?, like with buttons and input boxes?

Thanks,

3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 08/07/2008 : 12:27:04 PM
The following code will delete all graphs in the current project



void dg()
{
	GraphPage gg;
	while(gg = Project.GraphPages(0))
		gg.Destroy();
}


kineticesp Posted - 08/05/2008 : 10:02:49 AM
Thank you so much it worked!.

Now I have some more questions:

1) Is there a way to use data from an active worksheet in a GETN_LIST (for example).

2) When the project has Graphpages open it doesnt execute the code, is there a way to close all Graphpages?

Im trying this way:

foreach(GraphPage gp in Project.GraphPages)
{
foreach(GraphLayer gl in gp.Layers)
{
//Code for remove stuff.
}
}

But as you see the important part is missing :D.

Thanks again
cpyang Posted - 08/01/2008 : 9:20:30 PM
You can use the GetN dialog. See GetNBox.h for examples. Like this one


#include <GetNBox.h>// must include this file as it is not included inside origin.h
void tt()
{
	GETN_TREE(tr)
	
	GETN_CHECK(FitAllCurves, "Fit All Curves", 0)
	GETN_BEGIN_BRANCH(Fit, "Fitting Options")//Match GETN_END_BRANCH
		GETN_CHECK(FixIntercept, "Fix Intercept", 0)
		GETN_CHECK(FixSlope, "Fix Slope", 0)
	GETN_END_BRANCH(Fit)	//Match GETN_BEGIN_BRANCH
	GETN_NUM(Points, "Points", 20)
	
	if(GetNBox(tr, NULL, NULL, NULL, NULL))
		out_tree(tr);
}



We will provide more examples on our wiki site, but in the mean time, you can search for "GetNBox(" in the OriginC\Originlab folder to see many many such kinds of codes. Many small examples are also given inside GetNBox.h


CP



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