Scrolling in EPrime?
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Scrolling in EPrime? Expand / Collapse
Author
Message
Posted 8/24/2008 3:01:58 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/25/2008 11:38:43 AM
Posts: 1, Visits: 2
I'd like to create an Eprime program, similar to those used in SAT and GRE practice tests, where I can show a long passage on the left (which requires the user to scroll down in order to view the entire passage) along with multiple choice questions on the right. I'd like the user to have access to the entire passage (e.g., if they scroll down, they can still scroll back up, and vice versa).

It doesn't appear that a long text/image/slide automatically creates a scroll. Is there a way to program this manually?


Thanks!
Post #1985
Posted 8/26/2008 12:28:37 PM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Moderators
Last Login: 10/30/2008 3:23:17 PM
Posts: 127, Visits: 924
Hello,

It is possible to implement "scrolling" text in E-Prime. However, this must be done manually using InLine script. I have attached a very basic example of how this could be done. Essentially, a SlideText sub-object is created and its proportions are configured to be larger than the screen (thus creating the need to scroll the text). Another SlideText sub-object is used to present instructions to the subject.

The Slide object's Duration is set to 0, while its Time Limit is set to "infinite" and its End Action is set to "none". The only allowable responses are the down arrow, up arrow, and Enter keys. The Enter key is used as the termination response. The Max Count (i.e., maximum allowed responses) is set extremely high so that the subject can scroll freely.

This configuration results in the Stimulus appearing on screen while the InLine script is running in the background. This script does nothing except monitor incoming responses and moving the SlideText sub-object presenting the target text. This results in a "scrolling" effect as the subject presses the down and up arrow keys. All that is occurring is that the script gains access to the SlideText sub-object and then moves the Y position of the SlideText up or down as necessary. A "ceiling" and "floor" for the Y position is implemented so that the text is never off-screen.

The attributes in the TrialList are used to implement the "celing" and "floor" as well as to define the size and starting position of the text. This allows text of varying length to be presented.

Please let me know if you have any questions about this sample.


- Matt
PST Technical Consultant
http://pstnet.com


  Post Attachments 
ScrollText.es (1 view, 20.93 KB)
Post #1996
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 2:08pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 14 queries. Compression Disabled.