up Inquisit Language Reference

position attribute

The position attribute controls the screen location at which stimuli are presented.

Member of

<caption> <checkboxes> <clock> <dropdown> <image> <likert> <listbox> <openended> <picture> <radiobuttons> <shape> <slider> <text> <textbox> <video>

Syntax

/ position = (x value, y value)

Parameters

x value A value or property indicating the horizontal screen coordinate in pixels, percent(default), or points.
y value A value or property indicating the vertical screen coordinate in pixels, percent(default), or points.

Remarks

Horizontal position is relative to the left side. 0% is the left edge of the screen and 100% is the right edge. Vertical position is relative to the top of the screen, with 0% placing the stimulus at the top and 100% placing it at the bottom edge. Percentages may be specified as decimals (e.g., 52.968) for increased precision. The default position is the middle of the screen (50%, 50%).

Examples

The following sets the position of the text to the lower left corner of the screen:

<text sometext>
/ items = ("ipsum")
/ position = (0, 100)
</text>

The following sets the position of the text to the middle of the screen with 800 X 600 resolution:

<text sometext>
/ items = ("ipsum")
/ position = (400px, 300px)
</text>

The following sets the position based on the trial number:

<text sometext>
/ items = ("ipsum")
/ position = (trial.mytrial.currenttrialnumber * 5, trial.mytrial.currenttrialnumber * 5)
</text>

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