up Inquisit Language Reference

vPosition attribute

The vPosition attribute determines the vertical position of the item on the screen.

Member of

<button> <clock> <html> <picture> <shape> <text> <video>

Syntax

/ vPosition = y

or

/ vPosition = expression

Parameters

Name Type Description
y extent The vertical screen coordinate in pixels, percent (default), or points.
expression value An expression resolving to the vertical screen coordinate in pixels, percent (default), or points.

Remarks

The value is specified as a percentage of the vertical plane of the screen, where 0.0 corresponds to the top edge of the screen and 100.0 to the bottom. The default value is 50.0, which corresponds to the center of the screen.

Examples

The following sets the position of the text to be the top right corner of the screen:

<text myText>
/ items = ("ipsum")
/ hposition = 95
/ vPosition = 5
</text>

The following sets the position based on the trial number:

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

Copyright Millisecond Software, LLC. All rights reserved.