up Inquisit Language Reference

position attribute

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

Member of

<likert> <openended> <sliderTrial> <caption> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox> <button> <clock> <html> <picture> <shape> <text> <video>

Syntax

/ position = (x, y)

or

/ position = (xexpression, yexpression)

Parameters

Name Type Description
x extent 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 extent 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.
xexpression value An expression that resolves to 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.
yexpression value An expression that resolves to 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 myText>
/ 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 myText>
/ items = ("ipsum")
/ position = (400px, 300px)
</text>

The following sets the position based on the trial number:

<text myText>
/ items = ("ipsum")
/ position = (trial.myTrial.currentTrialNumber * 5, trial.myTrial.currentTrialNumber * 5)
</text>

Copyright Millisecond Software, LLC. All rights reserved.