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
 Q: Graph is active window always.

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
bigspoon Posted - 01/07/2005 : 11:51:39 AM
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
4   L A T E S T    R E P L I E S    (Newest First)
bigspoon Posted - 01/08/2005 : 2:32:26 PM
Mike Buess, tnx
I solved my problem
Mike Buess Posted - 01/08/2005 : 10:07:23 AM
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
bigspoon Posted - 01/08/2005 : 01:14:37 AM
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.
cpyang Posted - 01/07/2005 : 12:49:47 PM
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

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