Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetAreaWidth - method of object PmfTable

Description:
Returns current area width based on defined arguments.
Syntax:
Long GetAreaWidth(Long nColArea, Long Type, String Unit)
Calling:
nAreaWidth = object.GetAreaWidth(nColArea, Type, 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 is in HTML units "em". 1em equals to the current font size, e.g. of the document font is 12pt then 1em equals to 12pt (0.5em = 6pt, 2em = 24pt).
px - Width in pixels
Return Values:
Returns current area width based on defined arguments
Note:
This method is also functional in Web panels.
See also:

History:
Pm9.00.07: Created
PROMOTIC 9.0.7 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