Stopping Entered Text disappearing off screen

366 views
Skip to first unread message

Evertox

unread,
Jul 19, 2010, 10:34:11 AM7/19/10
to E-Prime
Hello,
I asked a question last week regarding a TextDisplay WordWrap problem.
Does anybody have a script to ensure a participants text entered is
ALL shown on the screen.
I do not want to change the screen resolution or font size to achieve
this.
I am trying a few methods based on the InputMask and EchoClient
objects but have not succeeded so far.
I need something fairly quickly and would appreciate assistance.
Anthony McGuffie
Coventry University

ben robinson

unread,
Jul 19, 2010, 10:41:00 AM7/19/10
to e-p...@googlegroups.com
how much text are you talking about?
eprime's default screen resolution is only 640x480, which is *tiny*.  and their default font size is pretty large.  if you're using both of these defaults you may simply find there's not a lot of text you can fit all on the screen at one time...


--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.


Michiel Spape

unread,
Jul 19, 2010, 10:58:33 AM7/19/10
to e-p...@googlegroups.com
Hi,
Could you explain a bit more as to what exactly your problem is? Is text left and right disappearing from the screen (say, from every line of text), or do you just try to fit more text on a screen than can be displayed (such that the last bits of text at the very end are cut off)? Or, finally, is the problem that no new-lines are entered into the textdisplay echo (if you're using that)?
The first possible issue, which could conceivably be your problem, usually happens because the monitor isn't correctly configured to display 640x480 resolutions (a rather ancient - say, windows 3.1 - default resolution). To do something about that, just run your experiment and fiddle with the monitor until the width and height are actually within the scope of the screen.
Obviously, the second of these issues cannot magically be resolved; I mean, given that you're using a full-screen text display, it can only contain so much text before there's no more screen left. Changing font-size or resolution will, as said, fix that problem, as would some implementation of 'press N for next page'; but apart from that, a box can only contain so many objects before the contents will spill over, so to say.
The third issue, word-wrap itself being the problem, might be resolved by manually (as in, with some code) adding new-lines to the text. I suppose that can't be too hard. Dump this in an empty experiment as an inline and run to see what I mean
-----------

dim inputstring as string
dim outputstring as string
dim previousnum as integer
dim i as integer
inputstring = "This is an example string"

previousnum = 1
for i = 6 to len(inputstring) step 5
outputstring = outputstring & mid(inputstring, previousnum, 5) & "\n"
previousnum = i
next i

debug.print outputstring
------------
Output:
This
is an
exam
ple s

----------
How's that? This piece of code converts the inputstring to a rather crudely cut outputstring, by adding new lines after every 5th letter. Of course, you'd need to find out how many letters fit on the screen, then adjusting 'step 5' to 'step howmanyletters' and 'for i = 6' to 'for I = howmanyletters + 1'
Best,
Mich


Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology

--

You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

Michiel Spape

unread,
Jul 19, 2010, 11:39:41 AM7/19/10
to e-p...@googlegroups.com
Oops, there's a slight problem with the code below; sorry about that. This should work better:

dim inputstring as string
dim outputstring as string
dim previousnum as integer
dim i as integer
inputstring = "This is an example string"

previousnum = 1
for i = 6 to len(inputstring) step 5
outputstring = outputstring & mid(inputstring, previousnum, 5) & "\n"
previousnum = i
next i

outputstring = outputstring & mid(inputstring, previousnum, 1+len(inputstring)-previousnum)
debug.print outputstring

------------
Output:
This
is an
exam
ple s

tring

------------

Evertox

unread,
Jul 19, 2010, 11:45:15 AM7/19/10
to E-Prime
Hi Michiel,

First off, i cannot upload an example file to the files section so it
is on the pstnet forum - http://support.pstnet.com/forum/Topic671-5-1.aspx

I am using the TextDisplay Echo option recording participants thoughts
for 5 minuites and showing them what thae have typed just like a word
document.

Everything works except for a CR and LF at the end of the screen so
they cannot see what they have typed.

As Quoted by Matt Lenhrart at PST in this thread------"make sure the
"Word Wrap" box is checked so that long responses will not go off-
screen (i.e. they will simply move down to the next line)."

Cheers

Anthony McGuffie

On Jul 19, 3:58 pm, Michiel Spape <Michiel.Sp...@nottingham.ac.uk>
wrote:
> For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.

Michiel Spape

unread,
Jul 19, 2010, 12:13:30 PM7/19/10
to e-p...@googlegroups.com
Hi Anthony,
First off, to cite David McFarlane, " I do not work for PST.", a bit of effort spent on clarity would be much appreciated. What is CR / LF? I looked at the file, but it's an e-prime 2 file, so I can't do much about it (I only have e-prime 1 here). I tried using an Echo object on a simple display object in E-Prime 1 and it seems to do the word-wrap correctly.

If you like, you could also run a text-display in a little loop to do exactly the same as the echo function; i.e., just enter a Label (let's say, Label1) just before the text display, set the text display's max count to 1 again, duration to 10 ms (or something) and check the response. Say, the textdisplay is called TextDisplay1, then use something like:

If TextDisplay1.RESP <> {ENTER} then
TextDisplay1.TEXT = TextDisplay1.TEXT & TextDisplay1.RESP
Goto Label1
End if

If word-wrap works for a normal textdisplay, then it ought to work for this as well. If it doesn't... perhaps a bug in your version of e-prime?

Sorry if I can't be of much more help - lacking E-Prime2, I expect somebody else might be of more use.

Evertox

unread,
Jul 19, 2010, 12:47:59 PM7/19/10
to E-Prime
Hi Michiel,

I appreciate your knowledge and assistance and I understand this is a
small subject group for user support.

I am having a problem uploading files to this Group for user viewing.
I used to be able to do this a while back.

I have sent the example file to PST support for troubleshooting and
just wanted to ask if anyone was aware of this issue.

CR and LF is the old Carriage Return and Line Feed (Return). It is
mentioned in the help files.

I have used both EP1(Service Pack 3) and EP2 to test this problem. I
will upload a EP1 sample version to the PST forum for others to view.

Cheers

Anthony McGuffie



On Jul 19, 5:13 pm, Michiel Spape <Michiel.Sp...@nottingham.ac.uk>
wrote:
> Hi Anthony,
> First off, to cite David McFarlane, " I do not work for PST.", a bit of effort spent on clarity would be much appreciated. What is CR / LF? I looked at the file, but it's an e-prime 2 file, so I can't do much about it (I only have e-prime 1 here). I tried using an Echo object on a simple display object in E-Prime 1 and it seems to do the word-wrap correctly.
>
> If you like, you could also run a text-display in a little loop to do exactly the same as the echo function; i.e., just enter a Label (let's say, Label1) just before the text display, set the text display's max count to 1 again, duration to 10 ms (or something) and check the response. Say, the textdisplay is called TextDisplay1, then use something like:
>
> If TextDisplay1.RESP <> {ENTER} then
>         TextDisplay1.TEXT = TextDisplay1.TEXT & TextDisplay1.RESP
>         Goto Label1
> End if
>
> If word-wrap works for a normal textdisplay, then it ought to work for this as well. If it doesn't... perhaps a bug in your version of e-prime?
>
> Sorry if I can't be of much more help - lacking E-Prime2, I expect somebody else might be of more use.
> Best,
> Mich
>
> Michiel Spapé
> Research Fellow
> Perception & Action group
> University of Nottingham
> School of Psychology
>
> -----Original Message-----
> From: e-p...@googlegroups.com [mailto:e-p...@googlegroups.com] On Behalf Of Evertox
> Sent: 19 July 2010 16:45
> To: E-Prime
> Subject: Re: Stopping Entered Text disappearing off screen
>
> Hi Michiel,
>
> First off, i cannot upload an example file to the files section so it
> is on the pstnet forum -http://support.pstnet.com/forum/Topic671-5-1.aspx

Michiel Spape

unread,
Jul 19, 2010, 1:19:58 PM7/19/10
to e-p...@googlegroups.com
Hiya,
If you like, you are welcome to email the e-prime 1 file to me; I'll have a look at it tomorrow.
Best,
Mich


Van: e-p...@googlegroups.com namens Evertox
Verzonden: ma 19-7-2010 17:47
Aan: E-Prime
Onderwerp: Re: Stopping Entered Text disappearing off screen

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

Evertox

unread,
Jul 21, 2010, 8:33:25 AM7/21/10
to E-Prime
Just to let everyone know. With the help of Michiel, i have resolved
the problem.
Unlike Microsoft Word and NotePad, the wordwrap option in E-Prime
requires a SPACE inserted on each line.
Cheers
Anthony McGuffie

On Jul 19, 6:19 pm, Michiel Spape <Michiel.Sp...@nottingham.ac.uk>

mvinski

unread,
Jan 3, 2013, 8:49:51 PM1/3/13
to e-p...@googlegroups.com
Hi Anthony, 

What do you mean by requiring a SPACE inserted on each line?

M

David McFarlane

unread,
Jan 4, 2013, 1:16:04 PM1/4/13
to e-p...@googlegroups.com
Anthony probably means that E-Prime Echo will
break strings for wrapping only at white
space. So if a string has no white space, it
will not wrap but just get cut off. E.g.,
suppose the Echo window is 10 characters wide by
3 high, and the subject may enter up to 30 characters. If the subject types

0123456789ABCD

Then the Echo will show

0123456789

But if the subject types

0123456789 ABCD

Then the Echo will show

0123456789
ABCD

Hope that helps.

-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)

/----
Stock reminder: 1) I do not work for PST. 2)
PST's trained staff take any and all questions at
http://support.pstnet.com/e%2Dprime/support/login.asp
, and they strive to respond to all requests in
24-48 hours -- this is pretty much their
substitute for proper documentation, so make full
use of it. 3) In addition, PST takes questions
at their Facebook page
(http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683
), and offers several instructional videos there
and on their YouTube channel
(http://www.youtube.com/user/PSTNET ) (no Twitter
feed yet, though). 4) If you do get an answer
from PST staff, please extend the courtesy of
posting their reply back here for the sake of others.
\----
> -<http://support.pstnet.com/forum/Topic671-5-1.aspx>http://support.pstnet.com/forum/Topic671-5-1.aspx

Melaina Vinski

unread,
Jan 4, 2013, 3:27:28 PM1/4/13
to e-p...@googlegroups.com
Thank you David, you're help is greatly appreciated!


--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Melaina T. Vinski
MSc Candidate
Psychology, Neuroscience & Behavior
Cognitive Sciences Lab
McMaster University
905-525-9140 ext. 22853
Reply all
Reply to author
Forward
0 new messages