I have a field which changes textColor property for a given line when clicked, 
allowing 
users to enter text in 2 different colors.  In 2.3 it worked fine.  You could hit 
return, control/click (Mac) and type away
in a different color.  However, 2.4 does not return the clickLine unless you have 
already typed something and 
click directly over some of the text you have typed.  So this script does not work so 
well now:

on mouseUp
put word 2 of the clickLine into theLine
if the textColor of line theLine of me is "red" then
set the textColor of line theLine of me to "black"
else set the textColor of line theLine of me to "red"
end if
end mouseUp

Is there another way?

Also, I think I learned this once but I forgot.  Is there any way to know which line 
of a field you are currently typing in? 
ie. the line which the cursur is currently on?  I'd like to be able to recieve a 
tabkey message and change JUST the currently
typed line of the field.

Thanks for your help

mark mitchell
japan


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to