Re: [NTLK] protoLabelInputLine

From: Andrei Chichak <>
Date: Wed Mar 11 2009 - 14:25:45 EDT

At 11:28 AM 3/11/2009, you wrote:

>OK, this might seem like a stupid question, but I'm experiencing a rather
large problem >trying to create any kind of application with NTK: I don't
know how to get the value the >user enters into a protoLabelInputLine. What
slot holds that value? Do I need to use a >function or what

First, name the protoLabelInputLine something like entryLine.

But, I think I see your problem. The documentation refers to how to get the
label portion but not the text portion. To set the text portion you use
something like SetValue( entryLine, 'text, "new text"); From P. 8-14 of
the Programmers Guide. I suggest that you can get the value of the text
slot using; something := entryLine.text;

Each time the text slot changes, your textChanged script will get called.
This would be the trigger for you to go retrieve the contents of the text slot.

Also see page 7-19 of the Programmers Reference for 2.0.


The NewtonTalk Mailing List -
The Official Newton FAQ -
The Newton Glossary -
WikiWikiNewt -
Received on Wed Mar 11 14:19:10 2009

This archive was generated by hypermail 2.1.8 : Wed Mar 11 2009 - 15:30:00 EDT