Try adding my sample script below: on xHiliteLine oMember, nLine if nLine = 1 then nFirstChar = 1 else nFirstChar = oMember.line[1..(nLine - 1)].length + 2 end if nLastChar = nFirstChar + oMember.line[nLine].length oMember.char[nFirstChar..nLastChar].hilite() end _____ Rodrigo Peres wrote: > this is my hilite code, but it have that problem i've mentioned. It not > selecte the entire line (the carriage return too). > > on mouseDown > thisField = sprite(the clickOn).member > ML = the mouseLine > if ML <> -1 then -- thisField.line[ML].hilite() xHiliteLine(thisField, ML) > end if > end > > If someone can point in how to make select all the line, i'll apreciate. ps: > it is a field cast member Good luck, Fumio Nonaka Attain Corporation Phone: +81-3-3255-4941 Fax: +81-3-3255-5998 mailto:[EMAIL PROTECTED] http://www.attainj.co.jp [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to