Re: [NTLK] protoLabelInputLine

From: M. Horvat <redjazz_slo_at_yahoo.com>
Date: Wed Mar 11 2009 - 14:38:19 EDT

But isn't the text slot only for the initial value?

-Matej Horvat

> 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 - 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:40:21 2009

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