up Inquisit Language Reference

getPixelsX function

Returns the horizontal pixel corresponding to the given screen percentage.

Member of

<display>

Syntax

display.name.getPixelsX(percent, monitor)

Return Type

extent

Parameters

Name Type Description
percent extent The horizontal percentage of the screen.
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 pixel value corresponding to the horizontal center of the screen on the second monitor:

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

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

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

Copyright Millisecond Software, LLC. All rights reserved.