up Inquisit Language Reference

getPointsY function

Returns the vertical point corresponding to the given location or size.

Member of

<display>

Syntax

display.name.getPointsY(y, monitor)

Return Type

extent

Parameters

Name Type Description
y extent The vertical location or size value.
monitor integer Optional. The monitor number.

Remarks

Both points and percentages increase from top to bottom, with the top of the screen corresponding to a value of 0.

Examples

The following displays the point value corresponding to the vertical middle of the screen on the second monitor:

<text myText>
/ items= ("points = <% display.getPointsY(50%, 2) %>")
</text>

The following displays the point value corresponding to the bottom side of the screen on the first (default) monitor:

<page myPage>
points = <% display.getPointsY(100%) %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.