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
 select all
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

66de250

China
31 Posts

Posted - 04/26/2025 :  01:43:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How can I achieve the selection of all data simply through the LabTalk command? Or how to center the data in all cells of the worksheet through the simple LabTalk command.

minimax

355 Posts

Posted - 04/29/2025 :  03:28:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi 66de250,

Please try following.
worksheet -s 0 0 0 0;	//sel all columns
//the two sec commands below will be not needed in the upcoming 2025b version
sec -p 0.2;
sec -pw %H;
Menu -e 35153;	//35153 is the id for center alignment toolbar


https://www.originlab.com/doc/en/LabTalk/ref/Worksheet_Options_Other#-s

https://www.originlab.com/doc/LabTalk/ref/Menu-cmd#-e.3B_Execute_the_menu_command_with_the_specified_ID



PS, you may also try using theme, like below.

https://my.originlab.com/ftp/forum_and_kbase/Images/T48645_CenterAlign.oth

themeApply2w theme:=T48645_CenterAlign option:=active;
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