up Inquisit Language Reference

getPointsX function

Returns the horizontal point corresponding to the given screen location or size.

Member of

<display>

Syntax

display.name.getPointsX(x, monitor)

Return Type

extent

Parameters

Name Type Description
x extent The horizontal location or size value.
monitor integer Optional. The monitor number.

Remarks

Both points and percentages increase from left to right, with the leftmost side of the screen corresponding to a value of 0.

Examples

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>

Copyright Millisecond Software, LLC. All rights reserved.