Update cookies preferences
Promotic

SetColWidth - method of the PmfTable object

Description:
Sets columns width of the table.
Syntax:
Empty SetColWidth(Variant Width, Long nColArea, Long iCol, [Long nCount])
Parameters:
Width(Variant) Column(s) width.
Integer - The value is in CSS units "em". 1em equals to the current font size.
For example if the document font size is 12pt then 1em equals to 12pt (0.5em = 6pt, 2em = 24pt).
String - Value in pixels (for example "50px").
This setting is only temporary, it means after the column width is calculated based on current data the setting is no longer remembered and after the data is changed the width is not recalculated.
nColArea(Long) Detecting the area of the table (see Areas in the table).
1 - Main area of the table
2 - Left area of the table
iCol(Long) Column index (zero-based index, -1 = the last column)
nCount[optional] (Long) Number of columns to set the width to.
- If not set, then the value is 1.
- If iCol=-1 (i.e. the last column) then it is the number of last columns (otherwise it is a number of columns since index iCol).
- If nCount=-1 then it is the number of columns from the index iCol to the last column.
Note: It is not possible to enter iCol=-1 and simultaneously nCount=-1.
Note:
This method is also functional in Web panels.
See also:
Example1:
JavaScriptSelect and copy to clipboard

oTable.SetColWidth(10, 1, 5, 1);

History:
Pm9.00.04: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.