up Inquisit Language Reference

dropTarget property

Determines whether visual stimuli can be dragged and dropped onto this stimulus.

Member of

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

Syntax

visualstimulus.name.dropTarget

Read/Write

Type

boolean

Remarks

A value of true (or 1) indicates the stimulus is a valid dropTarget. A value of false (or 0) indicates that items can not be dragged and dropped on it. Visual stimuli marked as

Examples

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

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

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

<page myPage>
droptarget = <% text.myText.dropTarget %>
</page>

The following code shows how to turn on and off the dropTarget property of stimuli at the beginning of a trial. In this particular case, the 'dot' can now only be dropped onto the 'leftBox', even if the 'rightBox' was previously set to be a dropTarget as well.

<trial foo>
/ inputDevice = dragDrop
/ onTrialBegin = {
  shape.leftBox.dropTarget = true;
  shape.rightBox.dropTarget = false;
}
/ stimulusFrames = [1 = leftBox, rightBox, dot]
/ validResponse = (leftBox, rightBox)
</trial>

Copyright Millisecond Software, LLC. All rights reserved.