Lock z-order?

Can DesktopX use layers?

Friday, October 7, 2005 by GraphicsKat | Discussion: DesktopX

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!




Skarny
Reply #1 Sunday, October 9, 2005 7:17 AM
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
rabidrobot
Reply #2 Sunday, October 9, 2005 6:29 PM
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.
Skarny
Reply #3 Friday, February 3, 2012 3:19 AM

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.

Uvah
Reply #4 Friday, February 3, 2012 8:22 AM

Saved for future reference.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01