Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Why isn't my text being presented at the center of the screen?
Why isn't my text being presented at the center of the screen?
Post Reply
Like
27
Why isn't my text being presented at the center of the screen?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Shona
Shona
posted 11 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 72,
Visits: 58
Hi,
I would like my text stimuli to be presented at the center of the screen, both vertically and horizontally. My script for this text is pasted below. Why isn't it being presented at the center of the screen? (It is being displayed at the top center--so it is centered horizontally but not vertically).
I'd be very grateful for your insight.
Shona
<text Political_item>
/size = (75%, 75%)
/items = Political_item
/position = (50%, 50%)
/valign = center
/halign = center
/select = noreplacenorepeat
/selectionrate = always
</text>
Reply
Like
27
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
The <text> element *is* centered as you could easily see by giving it a visible /txbgcolor:
<text Political_item>
/ txbgcolor = (red)
/size = (75%, 75%)
/items = Political_item
/position = (50%, 50%)
/valign = center
/halign = center
/select = noreplacenorepeat
/selectionrate = always
</text>
What isn't centered vertically is the item text inside the bounding rectangle defined by the /size. Observe the difference when defining
<text Political_item>
/ txbgcolor = (red)
/size = (75%, 75%)
/items = Political_item
/position = (50%, 50%)
/ hjustify = center
/ vjustify = center
/valign = center
/halign = center
/select = noreplacenorepeat
/selectionrate = always
</text>
all of which you can find documented in the language reference for the <text> element.
Reply
Like
18
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
27
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search