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
 How to create button for vertical translation

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
matsati Posted - 10/13/2007 : 3:44:26 PM
Origin Version (Select Help-->About Origin): OriginPro 7.5 SR6
Operating System: Windows XP

I work a lot of with infrared spectroscopic data, i move the graph curves up and down a lot. Going through the Analysis:translate:Vertical menu each time is a pain. I need to create a button with the vertical translation command to make my life easier. Can anyone help me out here? Thank you for your help!

Edited by - matsati on 10/13/2007 3:50:10 PM
4   L A T E S T    R E P L I E S    (Newest First)
pmalafaya Posted - 11/29/2007 : 09:21:14 AM
Ok. Thank you. I will try.
Mike Buess Posted - 11/26/2007 : 8:45:23 PM

Both add-ons install and work properly in Origin 8 under XP so yours must be an issue with Vista and OPKs. However, the Translate Horizontal/Vertical menu commands also don't work in XP. In principle one moves the red line horizontally or vertically and the curve moves to the new position on release. However, curve does not budge when I try it. Hopefully these bugs will be worked out in the upcoming SR1 patch but a temporary workaround using the old LabTalk translation scripts can be used until then. You can run the following script from the Custom Routine button as described here.

%L=Horizontal Vertical;
%S=TransX TransY;
transXY = transXY==0/0 ? 1 : transXY;
getnum ( ) transXY:L
(Enter translation direction.);
run.section(GRANALY,%[%S,#transXY]);

Mike Buess
Origin WebRing Member
pmalafaya Posted - 11/26/2007 : 12:51:41 PM
I was experiencing the same and i have tried to implement the suggestions. But they do not seem to work with version 8 and vista(at least with me..). The 126 when unpacking does not run (Some of the information for the group is missing or invalid; the group cannot be added) and when trying to customize 127 does not appear the user-defined button. Is there any other solution?
Can you explain please even how to do it in the 'normal' way? I seems that does not work with me also.. I do not work with origin since version... 5..
Sorry and thank you in advance.
Mike Buess Posted - 10/14/2007 : 07:39:54 AM
The Translate Vertical command runs the TransY section of the script file GRANALY.OGS and there are two ways to run it from a toolbar button...

1. Assign the command run.section(GRANALY,TransY) to the Custom Routine button as described here.

2. Assign the settings File Name: GRANALY.OGS and Section Name: TransY to a user-defined toolbar button as described here (Help> Origin).


There are also two buttons on the File Exchange that perform arbitrary translations...

http://www.originlab.com/FileExchange/details.aspx?fid=126
http://www.originlab.com/FileExchange/details.aspx?fid=127


Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/14/2007 07:42:24 AM

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