| 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 |