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
 Origin Forum
 Automatic text label for graph template

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
ringman7677 Posted - 05/10/2001 : 4:08:30 PM
Is there a way to create an automatic text label at the top of the graph template that would display the name of the window automatically?
1   L A T E S T    R E P L I E S    (Newest First)
CStorey Posted - 05/10/2001 : 6:48:10 PM
The easy way is to create a text label. Here's how:

1) Create a text label called 'Window Name goes here!' (use the T icon). The position and name are irrelevant at this point because a script will move the label and overwrite the text.

2) Right click on the label you just created. Select 'Label control', which should bring up a dialog box.

3) Past the following into the editable area at the bottom:

///////////////////////////////////////////
// Add Path info and Graph Name on Save
///////////////////////////////////////////
%P=\v(%H from %X%G.OPJ);
label -s -sa -d (.20*page.width) (.14*page.height) -n Path %P;
Return;
///////////////////////////////////////////

This is the LabTalk script that will add the path information for you. You can modify it's position by adjusting at what % of the page height and width to place top left corner of the text label.


4) Change the 'Object Name' edit box to 'Path' and the 'Script, Run After' edit box to 'Window Create'. Doing the second tasks selects at which point the script will be executed.

5) Save this as a template. When you reopen the template the name, path and project info should apprear in the graph.

If you have any problems I'll email you an example.
Craig


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