| T O P I C R E V I E W |
| tinkusch |
Posted - 08/03/2005 : 11:50:30 AM 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
|
| 2 L A T E S T R E P L I E S (Newest First) |
| tinkusch |
Posted - 08/04/2005 : 04:33:43 AM 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
|
| Mike Buess |
Posted - 08/03/2005 : 12:42:12 PM 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 |