List field line-up

Sarah sarahr at genesearch.com.au
Thu Jul 25 20:41:02 EDT 2002


How about this:
	put the hilitedLines of me into lineNums
	set the hilitedLines of fld 2 to lineNums
	set the hilitedLines of fld 3 to lineNums

I have found that select doesn't always work, but the hilitedLines will 
work whether you have multiple lines selected or just one.

Sarah


On Friday, July 26, 2002, at 04:51  AM, Jan Schenkel wrote:

> Hi Nicholas,
>
> The following additional handler in the script of
> field 3 (and _mutatis mutandis_ in the other two
> fields) should do the trick:
>
> on mouseUp
>   repeat for each item tLine in the hilitedLines of me
>     select line tLine of fld 1
>     select line tLine of fld 2
>   end repeat
> end mouseUp
>
> This incidentally also covers the situation where you
> have set the multipleLines property of the flds to
> true.
>
> Hope this helped,
>
> Jan Schenkel.
>
> "As we grow older, we grow both wiser and more foolish
> at the same time."  (De Rochefoucald)
>
> --- "Feasey, Nicholas" <NFeasey at utpress.utoronto.ca>
> wrote:
>> Yes, great, your script works nicely.  What about
>> changing the hightlight on
>> these additional fields as well?  I tried hilite but
>> that seems to only work
>> on buttons.
>>
>> N
>>
>> -----Original Message-----
>> From: Klaus Major [mailto:klaus.major at metascape.org]
>>
>> Sent: 25-Jul-02 3:46 AM
>> To: use-revolution at lists.runrev.com
>> Subject: Re: List field line-up
>>
>>
>> Hi Nicholas.
>>
>>> I'm having a problem when I add fields from a file
>> into a field.
>>> I have, say, name, address and phone number.  The
>> text file uses a TAB
>>> as
>>> the delimiter.
>>> I load it into the list and everything loads just
>> fine.
>>> However, I can't get the fields to line up.  I'm
>> not sure what the
>>> issue is.
>>> So, if I have the following fields with each item
>> separated by TAB:
>>> Joe Smith	123 Somestreet	416-999-9999
>>> Nicholas Feasey	7 MyStreet	416-888-8888
>>> ...when it gets into the list field it doesn't
>> line up (in the example
>>> above, for obvious reasons).
>>
>> These questions have already been answered
>> sufficiently, i think.
>>
>>> Can I put each item into an individual field and
>> have the three fields
>>> (Name, Address, Phone Number) scroll in sync?
>>
>> This is also possible.
>>
>> In case you might need this in the future, here is
>> how to do that.
>>
>> Example:
>>
>> You have 3 fields, nicely lined up.
>> Field 1 and 2 do NOT have a scrollbar.
>> Field 3 has a scrollbar and you just have to add
>> this to the script of
>> fld 3:
>>
>> on scrollbardrag
>>    set the scroll of fld 1 to the scroll of me
>>    set the scroll of fld 2 to the scroll of me
>> end scrollbardrag
>>
>> Et voila, they scroll in sync and you are happy :-)
>>
>>
>> Regards
>>
>> Klaus Major
>> klaus.major at metascape.org
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>>
> http://lists.runrev.com/mailman/listinfo/use-revolution
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>>
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.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