hierarchical lists with collapsing arrows

Thomas McGrath III 3mcgrath at adelphia.net
Thu Apr 13 08:07:56 EDT 2006


Martin,

I like this idea very much. Right now I am happy with just using the  
whole line since I don't want to do anything else when clicked but if  
I did want the user to edit the text etc. then I would use this  
approach.

Thank you,

Tom

On Apr 13, 2006, at 2:20 AM, Martin Baxter wrote:

> What I do is perhaps not exactly simple, but I set a tab stop so  
> that all the disclosure graphics are effectively in a table column  
> of their own. Each line has a leading character (with or without an  
> imagesource) followed by a tab. Then when a line is clicked, I  
> check the horizontal mouse co-ordinate (minus the left co-ordinate  
> of the field) to see if it is within the first column as defined by  
> the tabstops property, and if so I treat it as a potential expand/ 
> collapse event.
>
> I like this because it allows for some latitude in click accuracy,  
> and lets me do entirely different things when the remainder of the  
> line is clicked or double-clicked.
>
> Martin Baxter

Thomas J McGrath III
3mcgrath at adelphia.net

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html










More information about the use-livecode mailing list