Re: [NTLK] Programming Question (protoLabelInputLine)

From: Daedalus (daedalus_at_digitalinkwell.net)
Date: Thu Feb 12 2004 - 20:55:27 PST


>> Any advice on how to let people enter text but still let an app be
>> repositioned on the screen by the user? Maybe the viewClickScript I'm
>> using above isn't the way to go?!?!
>
>Not sure if this will work (it's too late to check),
>but I would try to add a viewClickScript to your protoLabelInputLine(s)
>that does nothing but return true (or nil, not sure). One of the two
>will mean something like "this drag event has been handled".
>
>Good luck
>
>Frank

I tried it, but it didn't end up working. With the viewClickScript set
to return "true", the protoLabelInputLine is no longer draggable, but
there is no text input ability either (in other words, nothing happens).
 When set to return "nil" tapping on the input line drags the whole
application (which never happened before).

>The key is to make just the border draggable and leave the rest of the
>view alone.
>
>- Michael

That might be the way I end up going.

Thanks for the help, guys. This is just one of those wierd problems that
was very unexpected, and seems like things should just work. The "Drag"
method I'm using is pretty much how they suggest to make a view draggable
in the Newton Programmer's Reference.

Ah well. It's given me some things to look into.

Daedalus
http://www.digitalinkwell.net/

-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/


This archive was generated by hypermail 2.1.5 : Thu Feb 12 2004 - 23:00:02 PST