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
 Dialog Builder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tinkusch

Germany
94 Posts

Posted - 08/03/2005 :  11:50:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR 5
Operating System: XP

Hi,
can anyone please help me to understand how to use the
following two options in the dialog builder:

1) DialogName!graph.create(TemplateName);
2) DialogName!GraphPlaceholderName.attach();

My first problem is, that the template is not found, instead a layer with a default gtemplate is created. Do I have to add a path to the templates?

My second problem is: How can I select a given dataset in order to plot it in my dialog-window. I used the layer icon selection tool as with normal graph-windows, but the datasets selected were not plotted.

Thanks for help!
Stefan


Mike Buess

USA
3037 Posts

Posted - 08/03/2005 :  12:42:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Stefan,

As long as the template is on your User path or the program path you don't need to include the path. (If it's in a subfolder you do need the subfolder name.) Adding plots to the graph is best done by script. Here's the approach that I've been using...

DialogName!graph.create(TemplateName);
DialogName!GraphPlaceholderName.attach();
doc -e P {%W=%H}; // find name of graph window
win -o %W {
lay -i Data1_B; // plot Data1_B
};

The "proper" way to do this is described in an earlier topic...
http://www.originlab.com/forum/topic.asp?TOPIC_ID=1654

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/03/2005 1:24:56 PM
Go to Top of Page

tinkusch

Germany
94 Posts

Posted - 08/04/2005 :  04:33:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,
thanks very much again. Everything is working fine now.

By the way: The description of this feature in the Origin Textbook is a little sparse...

Bye
Stefan



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