the clickCharChunk: space is not a char?

erik hansen erikhans08 at yahoo.com
Wed Apr 9 21:50:01 EDT 2003


--- 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



More information about the use-livecode mailing list