Re: tree view hide key

2018-11-02 Thread Brian Milby via use-livecode
There are two PRs currently in progress. 6764 and 6770. Neither address the custom sort (just an idea at this point, have not gotten to the code point). Thanks, Brian On Nov 2, 2018, 7:58 AM -0500, Mike Kerner via use-livecode , wrote: > what is the PR for this version? > > On Thu, Nov 1, 2018 a

Re: tree view hide key

2018-11-02 Thread Mike Kerner via use-livecode
what is the PR for this version? On Thu, Nov 1, 2018 at 7:29 PM Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > Well, testing any of the fixes would require you to download the widget and > build it as none of the 9.1 builds are out yet. > > I did have an idea about manual

Re: tree view hide key

2018-11-01 Thread Brian Milby via use-livecode
Well, testing any of the fixes would require you to download the widget and build it as none of the 9.1 builds are out yet. I did have an idea about manual sorting of data in a tree view. I'll need to bounce it around in my head a bit to see if it would be workable. The basic idea would be to al

Re: tree view hide key

2018-10-31 Thread Bob Sneidar via use-livecode
You and others have addressed a lot of the work I think, and thank you for that by the way. One of the things I would like to see is something akin to findRecord and findIndex in a datagrid. Of course, finding something several levels in requires that you would need to return not just a number,

Re: tree view hide key

2018-10-31 Thread Mike Kerner via use-livecode
I was thinking about using it for a directory view. It seemed like a natural fit - nodes are subdirectories and leaves are files. You can't just limit the hiliteChanged event to leaves, so you have to be able to determine if the user clicked on a leaf or a node, and if it's a node behave differen

Re: tree view hide key

2018-10-31 Thread Brian Milby via use-livecode
Tree view displays a LiveCode array, so everything is key-value. What you are running up against is that the value is either a string or an array. What are you wanting to use as a key? How are you storing the data now prior to presentation? That is probably the single issue that can't be readily

Re: tree view hide key

2018-10-31 Thread Mike Kerner via use-livecode
• Nodes can't have both keys and values, only leaves can • You can't hide the key • Hiding the key is kind of important if you're trying to use it for a directory tree view. Working around this requires assigning keys only but no values, but if you do that then you can't figure out (without lookin

Re: tree view hide key

2018-10-30 Thread Brian Milby via use-livecode
What kind of work? Here are a couple that I can think of that are not easily addressed: - Arbitrary sort would take significant changes (a couple options: 2 part key [1,firstkey], [2,asecondkey] or restructuring the array format to something like [key][title], [key][value] where the title and opt

Re: tree view hide key

2018-10-30 Thread Bob Sneidar via use-livecode
Yeah I really tried to like the tree view widget but it needs work. Sent from my iPhone > On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode > wrote: > > In tree view can you hide the keys of the array? I was messing with using > it to display directory and subdirectory contents, but it

Re: tree view hide key

2018-10-30 Thread Brian Milby via use-livecode
No, the tree always displays the key and value. Thanks, Brian On Oct 30, 2018, 3:38 PM -0500, Mike Kerner via use-livecode , wrote: > In tree view can you hide the keys of the array? I was messing with using > it to display directory and subdirectory contents, but it seems that you > have to disp

tree view hide key

2018-10-30 Thread Mike Kerner via use-livecode
In tree view can you hide the keys of the array? I was messing with using it to display directory and subdirectory contents, but it seems that you have to display the key, which makes some other things more difficult. ___ use-livecode mailing list use-li