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
 LabTalk Forum
 DialogName!graph.create(TemplateName)

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
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…

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