*PERCENTCONVERT (SETMODE)
10.1A, PLB Web Only
*PERCENTCONVERT={value}
Note:
The *PERCENTCONVERT control sets the mode value used by the PL/B Web Server to convert the PWS object positions into a percentage.
{value} is a decimal number or numeric variable that specifies the runtime mode. The value is one of the following:
|
Value |
Usage ... |
|
0 |
The default if the *PERCENTCONVERT is not used. In this case, PWS object positions are not converted. |
|
n |
Any non-zero value that causes the LEFT position and the WIDTH for a PWS object are converted into a percentage relative to the width of its parent. |
|
2 |
The LEFT, WIDTH, and TOP property values for a HTML object are converted into a percentage relative to the width and height of its parent. |
When the {value} is set to a non-zero value, the following PL/B statement behaviors occur as follows executing on a PWS runtime:
A CREATE or FORMLOAD of a PWS object converts a LEFT and WIDTH property value to a WEBLEFT and WEBWIDTH property value as a percentage position. This only happens when both of these conditions are met:
The WEBLEFT and WEBWIDTH properties do not have a user specified preexisting property value.
The percent calculates to a value from 1% to 100%.
A SETPROP of a PWS object converts a LEFT or WIDTH property value to a WEBLEFT or WEBWIDTH property value as a percentage position. This only happens if the percent calculates to a value from 1% to 100%.
The percentage position values are retrieved by a GETPROP on WEBLEFT or WEBWIDTH property.
When the {value} is set to twp (2), the same behaviors are also applied for the CREATE, FORMLOAD, GETPROP, and SETPROP using the TOP and WEBTOP properties.
See Also: List Controls (SETMODE), SETMODE
![]() |