This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
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
'...