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
 LabTalk Forum
 DialogName!graph.create(TemplateName)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kid

USA
20 Posts

Posted - 07/16/2002 :  10:41:15 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 dont 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...

kid

USA
20 Posts

Posted - 07/17/2002 :  2:15:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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…
Go to Top of Page

Laurie

USA
404 Posts

Posted - 07/18/2002 :  4:12:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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