up Inquisit Language Reference

position attribute

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

Member of

<button> <caption> <checkboxes> <clock> <dropdown> <image> <likert> <listbox> <openended> <picture> <radiobuttons> <shape> <slider> <slidertrial> <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. If x is set to null and y is specified, x is set to the pixel value of y.
y value A value or property indicating the vertical screen coordinate in pixels, percent(default), or points. If y is set to null and x is specified, y is set to the pixel value of x.

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.