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
 Dialog Builder

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

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