MLGrid_SetColumnWidth

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > MLGrid Control > MLGrid Control Commands >

MLGrid_SetColumnWidth

 

Description

 

Set the column(s) width in pixels in a grid control

 

Syntax

 

n = MLGrid_SetColumnWidth(hGrid, StartingColumn, Width1 [, Width2 [, ...]])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hGrid

Number

No

handle to grid control, the one returned by CONTROL ADD MLGRID ...

StartingColumn

Number

No

The first column number whose width must be set

Width1

Number

No

Width in pixel of StartingColumn column number

Width...

Number

Yes

If more widths are passed, function will set successive columns width starting from StartingColumn + 1

 

Remarks

 

This function can set width of multiple consecutive columns just indicating all the needed widths starting from StartingColumn + 1

 

Restrictions

 

See also

 

Examples

 

'...

'---The following statement will set width of column 1, 2, 3, 4, 5, 6, 7 in one go

MLGRID_SetColumnWidth hGrid, 1, 80, 20, 30, 40, 50, 5, 80

 

'...