Author |
Topic  |
|
Matt
USA
17 Posts |
Posted - 06/07/2006 : 5:33:15 PM
|
Hello,
I reinstalled Origin (7.5 pro) and am trying to get back to my favorite environment.
I have a button that plots data to a SCATTER graph (which I have modified to my own uses). However, I get a "theme" graph when I use the button now-overriding my settings.
In the help file there is this instruction.
1. Make a graph using your custom template. 2. Open the Script Window or the Code Builder IDE and issue one of the following commands: PAGE.CNTRL=16; //LabTalk command issued in the Script Window LabTalk.Page.Cntrl = 16; //Origin C command issued from Code Builder
3. Re-save the graph template.
When I try step 2, I get the following, LABTALK.PAGE.CNTRL is an illegal name for defining a variable. It must not start with a number, nor an operator and may not contain a dot. #Command Error!
How can I make it so that my graph appears the way I want it? Having spent a lot of time in previous versions of Origin, I made up a number of templates--basically setting up my own "theme" before it was a feature. I'd rather use my own method than re-learn.
Matt
|
|
Matt
USA
17 Posts |
Posted - 06/07/2006 : 8:16:39 PM
|
In the end, I don't know if it is a theme or if Origin is just looking for the "scatter" template in the incorrect place. I.e. I have a separate directory for my templates, so Origin could be picking the default template.
Matt |
 |
|
Deanna
China
Posts |
Posted - 06/09/2006 : 05:17:53 AM
|
Hi, Matt. I am sorry that the reinstallation caused some inconvenience.
I tried the method you found in the help file, and found that it should be able to restore the templates back to your favorate style.
Here is the procedure: 1) Plot a scatter plot. 2) Customize the plot setting so that it looks the way you want. 3) Open the Script Window and issue the following commands: PAGE.CNTRL=16; 4) Right-click on the graph window title bar, and choose "Save template".
Then, even if the default system theme is changed, it will not affect the graph I plot with the template.
As for the error you have encountered, I guess you are typing LabTalk.Page.Cntrl = 16; in the LabTalk Console in the Code builder. Actually, such command cannot be used in LabTalk Console. It need to be written in a Origin C function and compiled. Why don't we take a simple way? I think you can use the Script Window, where you can issue the command directly.
Deanna OriginLab GZ Office
Edited by - Deanna on 06/09/2006 05:23:01 AM |
 |
|
Matt
USA
17 Posts |
Posted - 06/21/2006 : 2:11:23 PM
|
quote:
PAGE.CNTRL=16;
Oops, I should have read which command was for the script window...
Thanks a lot for the help.
Matt |
 |
|
|
Topic  |
|
|
|