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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Q: Graph is active window always.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bigspoon

Russia
Posts

Posted - 01/07/2005 :  11:51:39 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have one Graph with 5 layers in my opj-file. I add some workshets by script (it's execute from my application).
How can I change active window? I need to set Graph in active status always.

Origin Version : 7.5
Operating System : win2000

cpyang

USA
1407 Posts

Posted - 01/07/2005 :  12:49:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
simplest would be to create the workhseet as hidden, then the graph will remain active.

for example, from Origin C,

Worksheet wks;
wks.Create("mytemplate", CREATE_HIDDEN);


CP




Edited by - cpyang on 01/07/2005 12:51:17 PM
Go to Top of Page

bigspoon

Russia
Posts

Posted - 01/08/2005 :  01:14:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
cpyang, tnx

if I use key -wh the workhseet would be to create as hidden too. but in this case column of independent variable (X) is hidden.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 01/08/2005 :  10:07:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Save the name of the graph before you create the worksheet and reactivate afterwards. These are the LabTalk commands...

%W=%H; // This saves the name of the active (graph) window as %W
// Now create wks with your current commands (not necessary to hide wks)
win -a %W; // This activates %W

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/08/2005 10:55:29 AM
Go to Top of Page

bigspoon

Russia
Posts

Posted - 01/08/2005 :  2:32:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mike Buess, tnx
I solved my problem
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000