hierarchical lists with collapsing arrows
Xeubie Tsu
xeubie at hotmail.com
Wed Apr 12 18:19:25 EDT 2006
Jim,
I tried what you said, and the only problem is that it appear the entire
list item now becomes a link, not just the arrow. Here's the code I put into
the card script:
on openCard
repeat with i = 1 to the num of lines of fld "list"
set the imagesource of char 1 of line i of fld "list" to 1041
set the textstyle of char 1 of line i of fld "list" to "link"
end repeat
end openCard
(1041 is the arrow image.)
>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
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the use-livecode
mailing list