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
 Origin Forum
 Automatic text label for graph template
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ringman7677

USA
16 Posts

Posted - 05/10/2001 :  4:08:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

CStorey

Canada
137 Posts

Posted - 05/10/2001 :  6:48:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

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