Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetColWidth - method of object PmgWTable

Description:
Returns column width (in pixels).
Syntax:
Long GetColWidth(Long Col)
Calling:
nWidth = oTable.GetColWidth(col)
Parameters:
Col(Long) If the value is greater or equal 0 then it is a index of the column (zero-based index, counted including the fixed part).

Value -2 means the last column.

Note:

This method is also functional for Web panels.

See also:
Example:
Detects the width of the 5th column
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
var nWidth = oTable.GetColWidth(4);
PROMOTIC 9.0.5 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