up Inquisit Language Reference

getPixelsY function

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

Member of

<display>

Syntax

display.name.getPixelsY(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 top to bottom, with the top of the screen corresponding to a value of 0.

Examples

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

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

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

<page myPage>
pixels = <% display.getPixelsY(100%) %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.