tree view hide key
Mike Kerner
MikeKerner at roadrunner.com
Wed Oct 31 09:08:13 EDT 2018
• 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 looking at
the array) whether you are dealing with a leaf or a node.
On Tue, Oct 30, 2018 at 6:43 PM Brian Milby via use-livecode <
use-livecode at lists.runrev.com> wrote:
> 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 optionally
> value would be displayed and keys just used for sorting).
> - Inline editing is something that LCB doesn't support.
>
> My goal is to submit a PR today that will facilitate keyboard navigation (I
> want to add a couple properties that can be controlled from LCS which can
> handle the keypresses).
>
> Several code changes are already completed and either merged (9.1) or
> waiting review.
> - Numeric sort will now also sort the non-number entries below the numbers
> - If you select a row that is hidden by folding, it will expand to show the
> row
> - You can have the selected item scroll into view when selected
> - When an element is added interactively, it can be configured to
> auto-select the new element
> - You can reset the fold state to collapse the entire tree (optionally
> setting the arrayData at the same time)
> - MouseUp no longer registers as a click when the MouseDown was on a
> different row
>
> I don't see anything else in the QCC for the Tree Widget that I can address
> at the moment.
>
> Thanks,
> Brian
>
> On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > 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 <
> > use-livecode at lists.runrev.com> 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 display the key, which makes some other things more difficult.
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
More information about the use-livecode
mailing list