CGrid:SetColWidth


The SetColWidth method sets the horizontal width for a column in the grid body. To set the width of columns in the side heading, use SetSH_Width. This method overrides the initial grid properties defined by the values of GridParams.nDefColWidth and GridParams.nSH_Width.

Syntax

CGrid:SetColWidth( nCol, nWidth )

bullet.gif    nCol is the column to set. The first column of the grid body is column 1.

bullet.gif    nWidth is the column width in screen pixels.

Example

The following script sets the width of column 4 to 60 screen pixels:

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetColWidth( 4, 60 )

-- set the width of column 4 to 60 pixels

Related Topics

CGrid class, SetSH_Width, SetRowStretch


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