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
 Forum for Origin C
 How to sort the window list?

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
winflowers Posted - 11/05/2007 : 08:31:19 AM
Origin Version (Select Help-->About Origin): Origin 7.5 SR6
Operating System: Windows XP

I have 7 graph windows under an Origin project subfolder. I can access the graph window using menu "Window" (Alt+w) and the number. But I found sometimes the number were changed for the same graph window when I had made some modifications. Is it possible to sort this window list again with OriginC code or any other methodes?

Another question is: How to access and activate the window in the project explorer(right window) only using keyboard?

Any help is appriciated!
2   L A T E S T    R E P L I E S    (Newest First)
winflowers Posted - 11/07/2007 : 08:09:29 AM
Finally I could manage to sort the window list with OriginC. Although it is not so elegant, at least it works. If you want to sort the graph window list under a project folder, you can try the following code:

void sort_graph()
{
Folder fld = Project.ActiveFolder();
string strFdName = fld.GetName();
StringArray saName;
foreach(PageBase pb in fld.Pages)
if( pb.GetType() == EXIST_PLOT )
saName.Add(pb.GetName());
saName.Sort();
int iNum = saName.GetSize();
for (int ii=0; ii< iNum; ii++)
{
string gh_Name = saName[ii];
GraphLayer gl(gh_Name);
set_active_layer(gl);
Project.ActivateFolder("/");
Project.ActivateFolder("/"+strFdName);
}
}
Mike Buess Posted - 11/06/2007 : 08:09:05 AM
As far as I know there is no programmatic control over the window list and the only keyboard control over project explorer is icon selection with the up and down arrows.

Mike Buess
Origin WebRing Member

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