Promotic

SetColWidth - method of the PmfTable object

Description:
Sets columns width of the table.
Syntax:
Empty SetColWidth(Variant Value, Long nColArea, Long iCol, [Long nCount])
Parameters:
Value(Variant) Column(s) width.
integer - The value je in HTML 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 "50px" - Value in pixels.
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 je 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).
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.27 SCADA system documentation MICROSYS, spol. s r.o.

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