up Inquisit Language Reference

getpixelsy function

Returns the vertical pixel corresponding to the given screen percentage.

Member of

<display>

Syntax

element.name.getpixelsy(percent, monitor)

Parameters

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

Examples

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

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

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