up Inquisit Language Reference

getpixelsx function

Returns the horizontal pixel corresponding to the given screen percentage.

Member of

<display>

Syntax

element.name.getpixelsx(percent, monitor)

Parameters

Name Type Description
percent integer The horizontal percentage of the screen.
monitor integer The monitor number (optional).

Examples

The following displays the pixel value corresponding to the horizontal center of the screen on the second monitor:

<text sometext>
/ 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 somepage>
pixels = <% display.getpixelsx(100) %>
</page>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.