T O P I C R E V I E W |
kid |
Posted - 07/16/2002 : 10:41:15 PM How this method works? As far as I know, it creates a graph call Graph1 associated to the dialog call DialogName. This means that I can only one graph per dialog? The OriginPro manual don’t explain any of this, and I have not been able to find it anywhere in the Origin website. Have I been looking in the wrong place?
Alex... |
2 L A T E S T R E P L I E S (Newest First) |
Laurie |
Posted - 07/18/2002 : 4:12:43 PM Hi Alex,
I also emailed you on this...I agree, the graph should be associated with the graph place holder, and not with the dialog itself. We have a tracking id, QA-1644, to implement this feature.
I'm not sure when this feature will be available, but please check back with us and reference the tracking id.
Thank you, Laurie
OriginLab Technical Support |
kid |
Posted - 07/17/2002 : 2:15:56 PM With the help of Craig Storey, we determine that Origin will not allow you to have more that one graph per dialog. This is Craig Code:
//Add Plot #1 GraphDlg!graph.create(%Y3d); GraphDlg!Plot1.attach(); GraphDlg!Plot1.SetRef();
//Add Plot #2 GraphDlg!graph.create(%YBAR); GraphDlg!Plot2.attach(); GraphDlg!Plot2.SetRef();
//Add Plot #3 GraphDlg!graph.create(%YCONTOUR); GraphDlg!Plot3.attach(); GraphDlg!Plot3.SetRef();
//Add Plot #4 GraphDlg!graph.create(%YLINE); GraphDlg!Plot4.attach(); GraphDlg!Plot4.SetRef();
The result is that every graph placeholder, contain the same Graph1 base on the first template of the list, 3d.
For the application I’m building, having different and unique graphs previews is a most. So what I did is a template with six layers. I did this using the merge tool. It will be nice to be able to have more that one graph in a dialog. The method DialogName!graph.cerate() should be associated with the graph place holder, and not with the dialog itself. I also notice that the graph Graph1 that gets created with this method is not really an origin graph. You can’t access it out side the dialog, which is ok, but if you delete the graph, Origin Crashes.
Alex… |
|
|