text
A line of text the person reads but does not edit. Change what it shows at any time by setting its text.
Syntax
Otter
create text into name
Properties
Output
text text What the control shows
width number Width in pixels
height number Height in pixels
background color Background color: a name ("navy") or a hex value ("#2563eb")
foreground color Text color, written the same way
align word left, center or right (rows and columns also accept top, middle, bottom)
Events
None.
Example
Otter
create window into app
title of app is "Greeting"
create text into message
text of message is "Welcome to Otter"
foreground of message is "#2563eb"
put message in app
show app
Expected result
A window showing "Welcome to Otter" in blue.
text box
heading