CGrid:SetHorzAlign
The SetHorzAlign method sets the horizontal alignment for all cells in the grid body. To set the horizontal alignment for cells in the side heading, use SetSH_HorzAlign. This method overrides the initial grid property defined by the value of GridParams.nHorzAlign.
CGrid:SetHorzAlign( nAlign )
Where nAlign is the alignment value: 1: align left, 2: align right, 3: align center.
The following script sets the alignment of the columns 2 to "center":
|
-- create a new CGrid object |
-- assemble the grid |
|
|
-- set the alignment of column 2 to "center" |
CGrid class, SetVertAlign, SetSH_HorzAlign
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.