Returns the horizontal pixel corresponding to the given screen percentage.
<display>
extent
Name | Type | Description |
---|---|---|
percent | extent | The horizontal percentage of the screen. |
monitor | integer | Optional. The monitor number. |
Both pixels and percentages increase from left to right, with the leftmost side of the screen corresponding to a value of 0.
The following displays the pixel value corresponding to the horizontal center of the screen on the second monitor:
<text myText>
/ items= ("pixels = <% display.getPixelsX(50, 2) %>")
</text>
The following displays the pixel value corresponding to the right side of the screen on the first (default) monitor:
<page myPage>
pixels = <% display.getPixelsX(100) %>
</page>