the clickCharChunk: space is not a char?
Ken Ray
kray at sonsothunder.com
Wed Apr 9 22:49:01 EDT 2003
Erik, are you trying to know exactly where the user clicked (I mean "in
the left margin next to line 3 of the field"), or just whether the user
clicked on text or not?
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of
> erik hansen
> Sent: Wednesday, April 09, 2003 7:47 PM
> To: use-revolution at lists.runrev.com
> Subject: RE: the clickCharChunk: space is not a char?
>
>
>
> --- Ken Ray <kray at sonsothunder.com> wrote:
> > I don't understand; I create a simple field,
> > put "Now is the time" into
> > the field ,lock it, and set the script of the
> > field to:
> >
> > on mouseUp
> > put the clickCharChunk
> > end mouseUp
> >
> > When I click between "Now" and "is" in the
> > white space, I get:
> >
> > char 4 to 4 of field 1
> >
> > What do you get?
>
> same thing now.
> i was clicking in left and right margins.
> with one chord lines of about 15 chars, this
> problem became apparent. what joy!
>
> so the new question is, how does one trap for
> clicks too far left or right? (sounds like a list
> flameout issue). that is, beyond the scope of the
> clickChunk or the clickCharChunk.
>
> probably something to do with the clickloc.
> click at your leftest and rightest chars, store
> the values, make the comparison.
>
> up and down is another story, especially with a
> scrolling field. that will be a lot of
> calculating and comparing, but it must be done
> because a user who wants to Paste between two
> lines will probably click at the vast white
> expanse on the right.
>
> maybe just pad with lots of spaces after the end
> of the line.
>
> does anyone have any war stories about editors.
>
> =====
> erik at erikhansen.org http://www.erikhansen.org
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com _______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list