CGrid:SetFontColor CGrid:SetRowStretch

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.

Syntax

CGrid:SetHorzAlign( nAlign )

bullet.gif    Where nAlign is the alignment value: 1: align left, 2: align right, 3: align center.

Example

The following script sets the alignment of the columns 2 to "center":

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetHorzAlign( 2, 3 )

-- set the alignment of column 2 to "center"

Related Topics

CGrid class, SetVertAlign, SetSH_HorzAlign


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.