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
 Origin Forum
 Select window by index?

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
matzmatz Posted - 07/25/2011 : 6:43:33 PM
Hi, is there any possibillity to select a window by index?
In the help I found this to select a wondow by short name: win -a book1;
But I´m looking for something like the following code for windows, to select a window by index:
page.active = 2;
Thank you from Germany!
Matz
2   L A T E S T    R E P L I E S    (Newest First)
eparent Posted - 07/26/2011 : 11:46:32 AM
quote:
Originally posted by matzmatz

Hi, is there any possibillity to select a window by index?


If you use Origin C then you can use the Pages property of the Project class. The Pages property is of type Collection. The first example on this page shows how to do what you want using Origin C.
Hideo Fujii Posted - 07/26/2011 : 11:17:37 AM
Hi Matz,

If my understanding is correct, windows (workbooks, graphs, etc.) 
inside Origin are not "indexed" for management. You can identify 
windows by enumeration like:
  ii=2;
  window -a book$(ii);

By the way, if you have questions about scripting, posting to 
LabTalk Forum is a better way to go as it would get exposed to more 
experienced readers.

--Hideo Fujii
OriginLab

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