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
Forum for Origin C
Specify that long name of worksheet is shown
New Topic
Reply to Topic
Printer Friendly
Author
Topic
stellarator
Germany
5 Posts
Posted - 07/27/2016 : 10:49:47 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2015 (64-bit) Sr2
Operating System: Windows 7, 64 bit
I can set the long name of a worksheet with OriginC by:
Worksheet wks = wksPage.Layers(1);
string strName = "long name";
wks.SetLongName(strName);
How can I specify, that the long name is shown for all worksheets?
Now I have to manually right click on the worksheet tab and select "sheet name to show". This is annoying, if I have to do this for many worksheets?
yuki_wu
896 Posts
Posted - 07/27/2016 : 11:19:32 PM
Hi,
I think the script below can help you:
wks.LT_set_var("layer.namemode", 0);
in which 0 = Show Long Name if available, 1 = Short Name(default), 2 = Long Name.
Hope it helps.
Yuki
stellarator
Germany
5 Posts
Posted - 07/30/2016 : 05:20:01 AM
Thanks, that was the right solution.
stellarator
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000