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
 Adding a path stamp via script?

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
tib Posted - 01/13/2002 : 07:22:54 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
tib Posted - 01/15/2002 : 12:14:52 PM
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.
Mike Buess Posted - 01/15/2002 : 07:13:29 AM
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
Mike Buess Posted - 01/13/2002 : 11:55:47 AM
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

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