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 |