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
 Using Long names to manipulate windows
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LabTalk user

USA
35 Posts

Posted - 09/28/2010 :  10:18:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3
Operating System: XP

I recently encountered a problem where the short name was being truncated and not naming the windows properly. I have gotten that issue resolved, but now I need to learn how to activate and rename windows using the long name. I can't seem to find it on the wiki page so any directions or assistance would be greatly appreciated.

Thanks!

VincentLiu

China
Posts

Posted - 09/29/2010 :  04:29:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following offers an example to show you how to active a window with its long name. But please note that for a long name could be used by different windows, it may be not a good way to manipulate a window with it.

Suppose you have a graph with long name as "My Test", then you can use the following command to activate it.

range rr = [My Test]!1;
win -a %(rr.getpage()$);


After the window has been activated, you could use

page.label$ ="You Test";

to rename it.

Vincent
OriginLab Technical Services

Edited by - VincentLiu on 09/29/2010 04:42:57 AM
Go to Top of Page

LabTalk user

USA
35 Posts

Posted - 09/29/2010 :  7:01:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you, this has helped point me in the right direction.

Thanks again!
Go to Top of Page

minimax

351 Posts

Posted - 09/29/2010 :  9:31:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Patrick,

For Origin8.x version, it is suggested to use page.longname$ to rename the window's LongName.

Max
OriginLab Technical Support
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