Hello,
I have two simple questions.
1.) How does one escape special characters using the Screen function in
PTB?
For example, if I want to display a single quote ('), could I precede it
by a special charcter in my string array that would tell Screen to take
that character literally rather than treating it as a special character?
2.) What is the standard way of displaying a paragraph of text using
PTB?
I am trying to simply display a longish paragraph using PTB 3 in Matlab
7. When doing so, I get the following error message (most pertinent
snippet from larger message):
"specific description: Cut corners and TextBounds will not accept a
string longer than 255 characters"
I am calling Screen in the following way:
"Screen('DrawText', myWindow, myLongParagraphStringArray, 500, 400);"
I suppose that this is not the standard way of displaying a long
paragraph of text. What, then, is the standard way of doing this?
Thanks!
-Joe
--
Joseph M. Paxton
Research Assistant
Department of Psychology
William James 1482
33 Kirkland Street
Harvard University
Cambridge, MA 02138
Phone: 617-495-3878
I have two simple questions.
1.) How does one escape special characters using the Screen function in
PTB?
For example, if I want to display a single quote ('), could I precede it
by a special charcter in my string array that would tell Screen to take
that character literally rather than treating it as a special character?
2.) What is the standard way of displaying a paragraph of text using
PTB?
I am trying to simply display a longish paragraph using PTB 3 in Matlab
7. When doing so, I get the following error message (most pertinent
snippet from larger message):
"specific description: Cut corners and TextBounds will not accept a
string longer than 255 characters"
I am calling Screen in the following way:
"Screen('DrawText', myWindow, myLongParagraphStringArray, 500, 400);"
I suppose that this is not the standard way of displaying a long
paragraph of text. What, then, is the standard way of doing this?
Thanks!
-Joe
--
Joseph M. Paxton
Research Assistant
Department of Psychology
William James 1482
33 Kirkland Street
Harvard University
Cambridge, MA 02138
Phone: 617-495-3878