up Inquisit Language Reference

height property

The display height of the item.

Member of

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

Syntax

object.name.height

Read/Write

Type

extent

Remarks

The height can be specified in percentages, pixels, or points. This property is useful to dynamically adjust the size of stimuli throughout runtime.

Examples

The following displays the value of height in a text stimulus:

<text myText>
/ items= ("height = <% text.foo.height %>")
</text>

The following displays the value of height in an instruction page:

<page myPage>
height = <% instruct.height %>
</page>

The following demonstrates how to adjust the size of a feedback image depending on performance (captured in values.acc) via the 'onprepare' attribute.

<picture feedback>
/ onPrepare = {
  if (values.acc){
    this.feedback.height = 80%; //'this' standing in for picture.feedback
  } else {
    this.feeback.height = 20%;
  }
}
/ items = ( "posFeedback.png ",  "negFeedback.png ")
/ select = values.selectFeedbackStim
</picture>

Copyright Millisecond Software, LLC. All rights reserved.