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