listField - dontWrap

Mark Smith mark at maseurope.net
Mon Jun 13 08:28:18 EDT 2005


If I understand the problem correctly, putting this into the script of 
the field should do it.


on mouseUp
   put word 2 of the clickLine into lNum
   put the text of me into me -- resets all line to plain text
   set the textStyle of line lNum of me to underline
end mouseUp


Best,

Mark

On 13 Jun 2005, at 12:53, Signe Marie Sanne wrote:

> Hello,
> I have a number of phrases, each delimited by return in a scrolling 
> field. When the user clicks anyone of these, the line should be 
> highlighted in some way.
>
> The problem is that some of the phrases are longer than the field 
> width, if I use list field behaviour the longest phrases are just cut 
> off. I searched the archives and found two scripts for "formatFld", 
> but none of them worked for me.
>
> I then tried to calculate the distance from the top of the field and 
> placed a gray graphic underneath, but this solution will not work when 
> the user scrolls the field. Grateful for suggestions.
> -- 
> Signe Marie Sanne
>
> 1. amanuensis/Senior lecturer
> Romansk institutt                 	Tlf. 	+47 55 58 21 27
> Øisteins gt. 1				Epost: 	signe.sanne at roman.uib.no
> Universitetet i Bergen
>
> http://www.hf.uib.no/mlab/Info/sms.html
> _______________________________________________
> 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