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
 Origin Forum
 What is the labtalk code to highlight a column?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

EigenGoofy

64 Posts

Posted - 05/12/2011 :  11:31:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
http://www.originlab.com/pdfs/Origin85_Documentation/LabTalk_Scripting_Guide.pdf

The labtalk scripting guide does not really help me much. So I would rather ask here:
What is the labtalk code to highlight a column, say, highlight col(C)?

Thank you for your help!

greg

USA
1378 Posts

Posted - 05/13/2011 :  10:09:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The WORKSHEET command has a SELECT option as in:
worksheet -select 2 0 2 0; // Select all of column 2
wo -s 1 5 2 10; // Select col 1, row 5 to col 2 row 10

For non-contiguous selection (of whole columns) you can use the colSel method of the WKS object:
wo -s; // de-select all
// following loop selects every other column
for(ii = 2 ; ii <= wks.ncols ; ii+=2)
wks.colSel(ii,1);
}
Go to Top of Page

EigenGoofy

64 Posts

Posted - 05/13/2011 :  6:44:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oh, This is purely awsome, esp for non-consecutive selection! Thanks a ton, greg.
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