Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 is in HTML units "em". 1em equals to the current font size. For example if the document font is 12pt then 1em equals to 12pt (0.5em = 6pt, 2em = 24pt)..
string "50px" - Value in pixels.

This setup 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 = 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).
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.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice