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
 Adding a path stamp via script?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tib

Switzerland
105 Posts

Posted - 01/13/2002 :  07:22:54 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Somewhere, I read about a time stamp: label -s -n Date $(@D,D9);
This is OK you set this label once and it will not change until you update this label by hand.

But, how do create "path stamp" via button which is updated automatically?
label -s -n Path \v(%X\%G - %H);
What you would need is the possibilty to link this text to variables. Something like: path.link=1;

Of course, you can add this path label to all your graph templates. But then you have to delete the path label where you don't want it. I would prefer that the default is 'no path label' until you press a button to add one.
Any ideas? Tilman.

Mike Buess

USA
3037 Posts

Posted - 01/13/2002 :  11:55:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'd assign the following script to the label and set it to run after a redraw.

this.text$=\v(%X%G - %H);

You could either save the label on a template or save it as an OGO file as discussed in your Create a button by a script? topic. I admit it's not a perfect solution because a refresh is needed to update the label.

I seem to recall that back in the Origin 3.0 days you could link a text label to string and numeric variables such that this sort of thing was taken care of automatically. I don't remember when or why that feature was dropped, but it would certainly be useful here.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/13/2002 12:07:42
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 01/15/2002 :  07:13:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Asleep at the wheel again. You can still link to variables. Just check the "Link to variables" option next to the object name in Label Control.

Mike Buess
Origin WebRing Member
Go to Top of Page

tib

Switzerland
105 Posts

Posted - 01/15/2002 :  12:14:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Of course, you can link this text label to variables by hand! But you know, I want to do everything by script.
By trying this, I just noticed that my Origin V6SR4 is crashing reproducibly if you want to assign e.g. path.text$=%X when %X or any other variable which is not yet defined. OK, sorry, bugs are not the topic of this forum.
The OGO file method works fine.
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