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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 select all

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
66de250 Posted - 04/26/2025 : 01:43:22 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 04/29/2025 : 03:28:36 AM
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;

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000