Re: [NTLK] protoLabelInputLine

From: Andrei Chichak <newton_at_chichak.ca>
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.

Andrei

====================================================================
The NewtonTalk Mailing List - http://www.newtontalk.net/
The Official Newton FAQ - http://www.splorp.com/newton/faq/
The Newton Glossary - http://www.splorp.com/newton/glossary/
WikiWikiNewt - http://tools.unna.org/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