up Inquisit Language Reference

button element

The button element defines a single button stimulus and specifies how the button is presented.

Attributes

<button name>
/ caption = text
/ color = colorname
/ color = expression

/ fontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ txColor = colorname
/ txColor = expression

/ animation = animation(....)
/ animation = circle(duration, loopCount, start, end, xcenter, ycenter, radius)
/ animation = path(duration, loopCount, x1, y1, x2, y2, x3, y3, ...)
/ animation = points(duration, loopCount, x1, y1, x2, y2, x3, y3, ...)
/ animation = size(duration, loopCount, startWidth, startHeight, scale1, scale2, scale3, ...)
/ animation = rotation(duration, loopCount, degrees1, degrees2, degrees3, ...)

/ borderColor = colorname
/ borderColor = expression

/ borderWidth = width
/ borderWidth = expression

/ dropPosition = (x, y)
/ dropPosition = (xposition, yposition)
/ dropPosition = (xexpression, yexpression)

/ dropSource = boolean
/ dropSource = expression

/ dropTarget = boolean
/ dropTarget = expression

/ erase = true
/ erase = true(colorname)
/ erase = false

/ hAlign = alignment
/ height = height
/ height = expression

/ hJustify = justification
/ hPosition = x
/ hPosition = expression

/ monitor = integer
/ onAnimate = { script }
/ position = (x, y)
/ position = (xexpression, yexpression)

/ scale = factor
/ size = (width, height)
/ size = (widthexpression, heightexpression)

/ vAlign = alignment
/ vJustify = justification
/ vPosition = y
/ vPosition = expression

/ width = width
/ width = expression

/ onPrepare = { script }
/ resetInterval = integer
/ selectionRate = rate
</button>

Properties

button.name.caption
button.name.color
button.name.fontHeight
button.name.textColor
button.name.borderColor
button.name.borderWidth
button.name.bottom
button.name.dropSource
button.name.dropTarget
button.name.dropX
button.name.dropY
button.name.eraseColor
button.name.eraseColorBlue
button.name.eraseColorGreen
button.name.eraseColorRed
button.name.height
button.name.heightPct
button.name.heightPx
button.name.hPosition
button.name.left
button.name.monitor
button.name.right
button.name.rotation
button.name.scale
button.name.top
button.name.vPosition
button.name.width
button.name.widthPct
button.name.widthPx
button.name.x
button.name.xPct
button.name.xPx
button.name.y
button.name.yPct
button.name.yPx
button.name.currentItem
button.name.currentItemNumber
button.name.erase
button.name.playThrough
button.name.skip
button.name.stimulusOnset
button.name.timestamp
button.name.name
button.name.typeName

Functions

button.name.containsPoint

Remarks

button stimuli provide a convenient means of providing response buttons.

Examples

The following defines a 'continue' button that appears on the right side of the screen:

<button continueButton>
/ caption = "continue"
/ position = (80%, 50%)
</button>

Copyright Millisecond Software, LLC. All rights reserved.