TreeView custom sort?
Tore Nilsen
tore.nilsen at me.com
Sat Dec 10 13:10:42 EST 2016
Could you build the initial array with the object names as keys, add the layer numbers as part of the information you store about each element, then sort the array by layer numbers and set the array of the tree view widget to the sorted array? Or am I missing something in your description here?
Regards
Tore Nilsen
> 10. des. 2016 kl. 18.30 skrev Richard Gaskin <ambassador at fourthworld.com>:
>
> I need a sort of object browser, and have been playing around with the TreeView widget as a possible quick solution.
>
> Handy for many things, but being array-based it seems my options for sorting are limited.
>
> Like the IDE's Object Browser, I need a sort order which reflects physical layering of objects.
>
> I could number these as I add them to the array, but the numbers would be meaningless to the user, as they would be in the Object Browser.
>
> I'd like to show the object name instead, but I can't find a way to do that while maintaining a fixed order.
>
> Any ideas, or am I back to making a custom control for this?
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
>
> _______________________________________________
> 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
More information about the use-livecode
mailing list