[nbos] sorting symbols in a mapkeith.davies-at-kjdavies.orgSun Oct 21st, 2007
I'm using FM7, will probably upgrade to FM8 fairly soon, if I can find a
way to solve this.
How can I sort symbols on a map to correct their Z-order?
I've got a bunch of symbols already on the map, I want to add some more
but want them ordered from 'top' to 'bottom'. Procedurally this could
be done by ordering the symbols from lowest y-value to highest y-value
(then lowest x-value to highest x-value where there's a collision -- I'd
expect this to be fairly uncommon), then setting Z-order appropriately.
I haven't done a lot of vbscript, but I can probably come up with a way
to do the sort. How would I set the Z-order, though? Perhaps simplest
might be to take the objects in sorted order, then call 'MoveToFront'
(or whatever the function's called, I don't have the API open) on each
in turn. Is there an easier way?
Or better yet, is this a solved problem, and I just have to find and
install a particular macro?
Keith Davies "History is made by stupid people
keith.davies-at-kjdavies.org "Clever people wouldn't even try
keith.davies-at-gmail.com "If you want a place in the history books
http://www.kjdavies.org/ "Then do something dumb before you die."
-- The Arrogant Worms
Nbossoftware mailing list