Lock z-order?

Can DesktopX use layers?

I'm trying to create a desktop in which almost every image is a DesktopX object. It's a realistic depiction of an actual desk, with the objects on it in perspective. Some of these images overlap a bit - the lamp sticking out from behind the computer monitor, for example - and I would really like to keep them from jumping to the top when I click on them. I set the z-order for each of them at Desktop Level, but I don't think that effects this problem. Is there any way to keep the layers in their original order?

Thanks so much!




22,286 views 4 replies
Reply #1 Top
I don't think there is a direct way to control z-order.
The closest you can get is that Children will always be above their parents. You can make objects children of children and so on, thus preserving that z-order.

anyone know another way? I think this is a useful ability to have (control over z-order)


Posted via WinCustomize Browser/Stardock Central
+1 Loading…
Reply #2 Top
I think you're right, Skarnivorous. Cascading parents/owners is probably the only way right now to ensure what stays on top of what. But actually making objects children would mean the entire graphic of the child would have to be contained in the parent.
Reply #3 Top

I'm dragging this thread out - because it was linked somewhere in my profile. I want to retract my ancient advice that parent child is the only way to preserve z-order. It seems that if you 'cancel' the Object_OnLButtonDown() function by setting it to 'true' it won't pass the click to whatever causes the window/object layer to move to the top of the z-order.

So put:

Function Object_OnLButtonDown(x,y)

Object_OnLButtonDown = True

End Function

Into an object script and it will not change z-order on click. :-D

Reply #4 Top

Saved for future reference.