FillInTheBlankMorph
Last updated at 11:20 am UTC on 31 March 2017
The FillinTheBlankMorph presents a text entry box to the user along with a title and Accept and Cancel buttons. There are many variations including some not shown below.
This class is used by FillInTheBlank (subclass of StringHolder).
Show the morph with its title. Answer the information typed if Accept is pressed or an empty string if Cancel is pressed.
FillInTheBlankMorph request: 'What is your name?'
"As above, but a default answer can be specified."
FillInTheBlankMorph
request: 'What is your favorite color?'
initialAnswer: 'red'
"As above but the morph is placed at the display center."
FillInTheBlankMorph
request: 'What is your favorite color?'
initialAnswer: 'red'
centerAt: Display center
How to use a FillInTheBlankMorph to capture a password