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
 begining Origin with "SaveProjectAs"

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
coll@inia. Posted - 12/27/2000 : 09:42:16 AM
I would like to start Origin with the dialog box of "Save project as.." to force people to save first the work they are going to perform. I try to copy some scripts from the menu but those did not work. Anybody has an idea?
1   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 12/27/2000 : 11:36:27 AM
If you Ctrl+Shift+select File:Save Project As, the script file and section name will be echoed back to the Script Window. If you have the latest version, the LabTalk Editor will also open.

The only script that you then need is "run.section(FILE,SaveProjectAs)". You want this script to run when Origin opens, so one way to do that would be to have the script execute when the Data1 worksheet is created. This worksheet is created from the origin.otw worksheet template file.

1. Open a new project.
2. Add a text label to the Data1 worksheet. (It doesn't matter what the actual text says.)
3. Select the text and right-click to choose Label Control.
4. In the Label Control dialog, enter the following script:

run.section(FILE,SaveProjectAs);

5. Set the Script, Run After: to Window Create. Uncheck the Visible checkbox.
6. Click OK.
7. Select File:Save Template As, saving as Origin.otw.
8. Select File:New Project and watch what happens.

I hope this helps.

Laurie
OriginLab Technical Support

Edited by - Laurie on 12/27/2000 11:39:27

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