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.
CGrid:SetColWidth( nCol, nWidth )
nCol is the column to set. The first column of the grid body is column 1.
nWidth is the column width in screen pixels.
The following script sets the width of column 4 to 60 screen pixels:
|
-- create a new CGrid object |
-- assemble the grid |
|
|
-- set the width of column 4 to 60 pixels |
CGrid class, SetSH_Width, SetRowStretch
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.