up Inquisit Language Reference

size attribute

The size attribute defines the width and height of the bounding rectangle of a visual stimulus.

Member of

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

Syntax

/ size = (width, height)

or

/ size = (widthexpression, heightexpression)

Parameters

Name Type Description
width extent The width of the rectangle in pixels (default), percent, or points. If width is set to null and a height is specified, the width is set to the pixel size of the height.
height extent The height of the rectangle in pixels (default), percent, or points. If height is set to null and a width is specified, the height is set to the pixel size of the width.
widthexpression value An expression resolving to the width of the rectangle in pixels (default), percent, or points. If width is set to null and a height is specified, the width is set to the pixel size of the height.
heightexpression value An expression resolving to the height of the rectangle in pixels (default), percent, or points. If height is set to null and a width is specified, the height is set to the pixel size of the width.

Remarks

The size attribute is useful for presenting pictures and video in the same size, or long strings of text that should be wrapped over multiple lines. Text, pictures, shapes, and video are sized to fit within the bounding rectangle.

Examples

The following presents a sentence wrapped in a 100 by 200 pixel rectangle.

<text paragraph>
/ items=("The quick brown fox jumped over the lazy dog")
/ size=(100, 200)
</text>

The following presents a circle who's diameter is 20% the width of the screen.

<shape circle>
/ shape=circle
/ size=(20%, null)
</shape>

Copyright Millisecond Software, LLC. All rights reserved.