up Inquisit Language Reference

getMMX function

Returns the horizontal size in mm corresponding to the given location or size.

Member of

<display>

Syntax

display.name.getMMX(x, monitor)

Return Type

extent

Parameters

Name Type Description
x extent The horizontal location or size value.
monitor integer Optional. The monitor number.

Remarks

Both pixels and mm increase from left to right, with the leftmost side of the screen corresponding to a value of 0.

Examples

The following displays the horizontal size in mm corresponding to 300 pixels on the second monitor:

<text myText>
/ items= ("mm = <% display.getMMX(300, 2) %>")
</text>

The following displays the horizontal size in mm corresponding to last mouse coordinate on the default (first) monitor:

<page myPage>
mm = <% display.getMMX(mouse.x) %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.