up Inquisit Language Reference

dropSource property

Determines whether a visual stimulus is can be dragged and dropped on the screen.

Member of

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

Syntax

visualstimulus.name.dropSource

Read/Write

Type

boolean

Remarks

A value of true (or 1) indicates the stimulus is a valid dropSource. A value of false (or 0) indicates it can not be dragged and dropped. Valid drop sources can be dragged and dropped onto other visual stimuli marked as

Examples

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

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

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

<page myPage>
dropsource = <% text.myText.dropSource %>
</page>

The following code shows how to turn on and/or off the dropSource property of a stimulus at the beginning of a trial. In this particular case, only 'dot1' can now be dropped onto the 'target' stimulus even if 'dot2' has been previously set to be a dropSource as well.

<trial foo>
/ inputDevice = dragDrop
/ onTrialBegin = {
  shape.dot1.dropSource = true;
  shape.dot2.dropSource = false;
}
/ stimulusFrames = [1 = target, dot1, dot2]
/ validResponse = (target)
</trial>

Copyright Millisecond Software, LLC. All rights reserved.