up Inquisit Language Reference

getPercentY function

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

Member of

<display>

Syntax

display.name.getPercentY(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 pixels 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 vertical percentage corresponding to 300 pixels on the second monitor:

<text myText>
/ items= ("percentage = <% display.getPercentY(300, 2) %>")
</text>

The following displays the vertical percentage corresponding to last mouse coordinate on the first (default) monitor:

<page myPage>
percentage = <% display.getPercentY(mouse.y) %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.