Multiline TEXT element - bug or feature


Author
Message
Blackadder
Blackadder
Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)
Group: Forum Members
Posts: 280, Visits: 147
Hi there.

I discovered this just by accident. When you define a <text> element as


<text TEXT_multiline>
/ items = ("This is a
multiline text")
/ hjustify = center


Inquisit will actually display two lines of text. However, the second line will not be centered under the first line. Instead, the first line is centered and the second line is left justified with the first line.

I am wondering whether such a multiline text is actually a planned feature or, well, not really a bug but some accidental byproduct of how Inquisit implements a text element. My actual question therefore might be rephrased as: "Will this multiline functionality be retained in future versions of Inquisit or is it prone to just go away at some point when you change the programming for the text stimulus?"

Bye, Malte
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
#1: The proper way to force line breaks is to use special characters. This is what should be used.

<text TEXT_multiline>
/ items = ("This is a~nmultiline text")
/ hjustify = center
</text>

#2: The text is not centered because the element is missing a /size attribute. If the dimensions of the bounding rectangle are not known, there is no center to align to.

<text TEXT_multiline>
/ items = ("This is a~nmultiline text")
/ hjustify = center
/ size = (50%, 50%)
</text>

Hope this helps.

Blackadder
Blackadder
Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)
Group: Forum Members
Posts: 280, Visits: 147
Hi Dave,

thanks a lot. I wasn't aware of the necessity of the size-attribute. I believed that Inquisit will determine the size from the font size and actual text.

And thanks even more for pointing out the special characters. Is this described anywhere in the help?

Best wishes
  Malte

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
> And thanks even more for pointing out the special characters. Is this described anywhere in the help?

Yes, the available special characters are detailed in the "Special Characters" topic in the language reference section.

Blackadder
Blackadder
Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)Supreme Being (27K reputation)
Group: Forum Members
Posts: 280, Visits: 147
Thank you! I completely missed that in the help.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search