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
 Automatic column width / row height
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JokerOne

Germany
58 Posts

Posted - 03/04/2016 :  10:24:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 9.1 and Service Release 1(Select Help-->About Origin):
Operating System: Win 7

Is there a LabTalk command that sets the column width of a particular col automatically just like double-clicking the right-handed border of that column?


Also, is there a LabTalk command that sets the row height of a particular row automatically just like double-clicking the lower border of that row?

Thanks for your help.


Edited by - JokerOne on 03/04/2016 11:09:34 AM

cpyang

USA
1406 Posts

Posted - 03/04/2016 :  10:57:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
wcolwidth 3 (-1);//set col(3) to fit width
but wrowheight dose not seem to work

wrowheight [3] (-1);

set to default only, does not work same as double click.

you can find out about such by

lx w*;
or
lx *width*;
lx *height*;
and to get each XF info

wrowheight -h;

CP
Go to Top of Page

JokerOne

Germany
58 Posts

Posted - 03/07/2016 :  06:30:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your answer.

I think, that I already found the command you mentioned in the docs. However, also wcolwidth 3 (-1) seems not wo work exacly like a double-click.

E.g. typing 3,14 in a cell and double-clicking that particular column fits that column to the exact width of the number "3,14", while using wcolwidth .. (-1) just - I do not know - sets a default width or so?

At least this accounts for the Origin version I am working with (9.1).

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