up Inquisit Language Reference

listbox element

The listbox element defines a survey item in which respondents select an option from a list.

Syntax

<listbox listboxname>
/ caption = "text"
/ correctresponse = ("character", "character",...) or (scancode, scancode, ...) or (stimulusname, stimulusname, ...) or (mouseevent, mouseevent, ...) or (joystickevent, joystickevent, ...) or ("word", "word", ...) or (keyword) or (property, property, ...)
/ defaultresponse = "text" or property or expression
/ fontstyle = ("face name", height, bold, italic, underline, strikeout, quality, character set)
/ listsize = (width variable, height variable)
/ options = ("label", "label", "label", ...)
/ optionvalues = ("value", "value", "value", ...)
/ order = order mode
/ orientation = layout
/ position = (x value, y value)
/ required = boolean
/ responsefontstyle = ("face name", height, bold, italic, underline, strikeout, quality, character set)
/ size = (width variable, height variable)
/ subcaption = "text"
/ subcaptionfontstyle = ("face name", height, bold, italic, underline, strikeout, quality, character set)
/ txcolor = (red value, green value, blue value) or color name or color value
/ txcolor = (red value, green value, blue value) or color name or color value
/ validresponse = ("character", "character",...) or (scancode, scancode, ...) or (stimulusname, stimulusname, ...) or (mouseevent, mouseevent, ...) or (joystickevent, joystickevent, ...) or ("word", "word", ...) or (keyword) or (property, property, ...)
</listbox>

Properties

listbox.listboxname.caption
listbox.listboxname.fontheight
listbox.listboxname.height
listbox.listboxname.hposition
listbox.listboxname.listheight
listbox.listboxname.listwidth
listbox.listboxname.name
listbox.listboxname.option
listbox.listboxname.optionvalue
listbox.listboxname.required
listbox.listboxname.response
listbox.listboxname.responsefontheight
listbox.listboxname.selected
listbox.listboxname.selectedcaption
listbox.listboxname.selectedcount
listbox.listboxname.selectedvalue
listbox.listboxname.subcaption
listbox.listboxname.subcaptionfontheight
listbox.listboxname.typename
listbox.listboxname.vposition
listbox.listboxname.width
listbox.listboxname.width

Functions

None.

Remarks

Examples

The following listbox item requires the respondent to select at least one option.

<listbox q1>
/ caption="Who was the first president of the United States:"
/ options=("George Washington", "Abraham Lincoln", "Thomas Jefferson")
/ required=true
</listbox>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.