This article applies to:
This sample demonstrates methods used to click portions of an image and determine if the portion clicked is a correct or incorrect response.
These sample experiments illustrate how to overlay transparent Slide sub-objects on top of a SlideImage sub-object so that their properties may be changed to identify a response.
Different methods are used in E-Prime 3.0 and E-Prime 2.0.
E-Prime 3.0 uses four equally portioned transparent SlideButtons placed over a SlideImage. Once one of the four buttons are clicked, a border appears indicating the button clicked. This is accomplished by setting the "Checked" Circumstance of each SlideButton to have a BorderWidth greater than 1 and a BorderColor set. The SlideButton's AutoCheck property is also set to "yes" (see: BUG: SlideButton AutoCheck and InitialCheck properties are ignored in E-Studio unless Attribute references are used ). Accuracy is then presented based on the CorrectAnswer Attribute in the TrialList.
E-Prime 2.0 uses four equally portioned transparent SlideTexts placed over a SlideImage. Once one of the four SlideText sub-objects are clicked, a border appears indicating the SlideText chosen. This is accomplised by using the Hit Test method within a Do...While Loop in Inline script directly after the Stimulus object. The script defines the SlideTexts as clickable objects and determines if one of them is clicked. If so, it identifies which one was clicked and creates a border around that SlideText. Accuracy is then determined by comparing the name of the SlideText that was clicked with the name of the SlideText defined in TrialList's CorrectAnswer Attribute. The script loops, checking for a response, until a response is made.