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 <ambassa...@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
> ____________________________________________________________________
> ambassa...@fourthworld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to