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