up Inquisit Language Reference

getpercenty function

Returns the vertical percentage corresponding to the pixels.

Member of

<display>

Syntax

element.name.getpercenty(percent, monitor)

Parameters

Name Type Description
percent integer The vertical pixels.
monitor integer The monitor number (optional).

Examples

The following displays the vertical percentage corresponding to 300 pixels on the second monitor:

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

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

<page somepage>
percentage = <% display.getpercenty(mouse.y) %>
</page>

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