Promotic

GetAreaWidth - method of the PmfTable object

Description:
Returns current area width according to defined arguments.
Syntax:
Long GetAreaWidth(Long nColArea, Long Type, String Unit)
Parameters:
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
Type(Long) Width.
0 - The width of all columns
1 - The width of visible part minus the width of possible scrollbar
2 - The width of visible part plus the width of possible scrollbar (for nColArea=2(left) the width is the same as for Type=1)
Unit(String) Unit.
em - 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).
px - Width in pixels
Return value:
Returns current area width according to defined arguments
Note:
This method is also functional in Web panels.
See also:
Example1:
JavaScriptSelect and copy to clipboard

var nAreaWidth = oTable.GetAreaWidth(1, 1, "px");

History:
Pm9.00.07: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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