*PERCENTCONVERT (SETMODE)


10.1A, PLB Web Only

*PERCENTCONVERT={value}

Note:

  1. The *PERCENTCONVERT control sets the mode value used by the PL/B Web Server to convert the PWS object positions into a percentage.

  2. {value} is a decimal number or numeric variable that specifies the runtime mode. The value is one of the following:

  3.  

    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.

     

  4. When the {value} is set to a non-zero value, the following PL/B statement behaviors occur as follows executing on a PWS runtime:

  5.  

    1. 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:

    2. 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%.

    3. The percentage position values are retrieved by a GETPROP on WEBLEFT or WEBWIDTH property.

    4. 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

 



PL/B Language Reference *PDFJPEGQUALITY (SETMODE) *PIXEL (SETMODE)