Returns the horizontal percentage corresponding to the pixels.
<display>
Name | Type | Description |
---|---|---|
percent | integer | The horizontal pixels. |
monitor | integer | The monitor number (optional). |
The following displays the horizontal percentage corresponding to 300 pixels on the second monitor:
<text sometext>
/ items= ("percentage = <% display.getpercentx(300, 2) %>")
</text>
The following displays the horizontal percentage corresponding to last mouse coordinate on the default (first) monitor:
<page somepage>
percentage = <% display.getpercentx(mouse.x) %>
</page>