hierarchical lists with collapsing arrows
Brian Yennie
briany at qldlearning.com
Wed Apr 12 19:05:51 EDT 2006
Xeubie,
What happens when you turn off the "list behavior" of that field?
It looks like this only happens with list behavior turned on - dunno if
anyone else has deeper insights!
One workaround would be to use "the clickChar" to determine what exact
character they actually clicked on - and make sure it was the arrow.
HTH,
- Brian
> I forgot to mention, here's the code in my list field:
>
> on linkClicked
> if the angle of image arrow.gif = 0 then
> set the angle of image arrow.gif to -90
> else
> set the angle of image arrow.gif to 0
> end if
> end linkClicked
>
> Like I said, it treats the whole list item as a link, so the arrow
> changes direction even if I click on the text next to the arrow. For
> an idea of what it looks like, I took a snapshot and attached it to
> this message.
>
>
>> From: Jim Lyons <jimlyons at earthlink.net>
>> Reply-To: How to use Revolution <use-revolution at lists.runrev.com>
>> To: How to use Revolution <use-revolution at lists.runrev.com>
>> Subject: Re: hierarchical lists with collapsing arrows
>> Date: Wed, 12 Apr 2006 12:04:48 -0400
>>
>> On Apr 12, 2006, at 11:11 AM, Xeubie Tsu wrote:
>>
>>> I'm attempting to make a list field that can organize context into
>>> "folders." I want an arrow icon next to folder names that you can
>>> click to collapse the folder. One way to get the arrow icon next to
>>> the text is to use "imagesource," but doing so makes it PART of the
>>> list field itself so you can't click on it (you can only click the
>>> whole list item).
>>>
>>> Does anyone know an easy way to do this?
>>
>> Make the first character with its imagesource set to the arrow icon
>> also link text (ie set its text style to link) and use the
>> linkClicked message in the field script to handle it.
>>
>> Jim Lyons
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _________________________________________________________________
> Dont just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list