position attribute

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

Applies to

<text> <shape> <picture> <video> <likert> <openended>

Syntax

/ position = (x, y)

Parameters

x A number indicating the horizontal screen location in percent (default), pixels, points, centimeters, millimeters, or inches.
y A number indicating the vertical screen location in percent (default), pixels, points, centimeters, millimeters, or inches.

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>


Send comments on this topic.
1999-2006 Millisecond Software, LLC. All rights reserved.