[Newbies] UI Reading In Text Field Input

Gary Dunn garydunnhi at gmail.com
Mon Apr 25 06:50:15 UTC 2011

The input field IS the container. You can retrieve the user input by sending
it a message, probably aTextField contents. If you really need to store that
elsewhere you can do an assignment, like myName := aTextField contents.
Finally, put that assignment in the method invoked by the submit button's
onClick handler.

Sometimes it helps to remind yourself that Smalltalk is not Java. Hope this

Gary Dunn
Open Slate Project

On Apr 24, 2011 6:30 PM, "calcrisk33" <rick.m.wallace at gmail.com> wrote:

I am at the moment putting together a simple UI with Morphic Designer.  I am
struggling to find a way to read in user input.  For example:

A user inputs a string/number into a text field then presses a button -->
how do I print this to Transcript or save the user input to a variable.  I
am familiar with Java but can not wrap my head around this.

Any help or a snippet of code would be much appreciated!

View this message in context:
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Beginners mailing list
Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110424/366f9eed/attachment.htm

More information about the Beginners mailing list