PDA

View Full Version : Preserving window z-order


sfarrow
06-03-2004, 10:17 AM
I have an application with several visible and overlapping windows. When a window is closed, the window that is given focus is not that at the top of the z-order of the remaining windows.

It is certainly an annoyance to have windows you do not expect to be popping to the foreground.

antun
06-04-2004, 09:26 AM
What version of the LPS are you using? In 2.1.2, windows do retain their z-order as far as I can tell.

-Antun

sfarrow
06-04-2004, 09:41 AM
I am using lps 2.1.1. I will download and try 2.1.2.

sfarrow
06-04-2004, 12:55 PM
I have installed lps 2.1.2. Window z-order is still problematic. I can reproduce the problem with the trivial example below. Closing Window Three I would expect Window Two to have focus, but Window One is brought to the foreground.


<canvas height="1000" width="1000">
<window x="10" y="10" width="300" height="200"
title="Window One"
resizable="true" closeable="true">
</window>
<window x="30" y="30" width="300" height="200"
title="Window Two"
resizable="true" closeable="true">
</window>
<window x="50" y="50" width="300" height="200"
title="Window Three"
resizable="true" closeable="true">
</window>
</canvas>

antun
06-04-2004, 01:04 PM
You're absolutely right - I had tried a test case of my own, but I didn't notice the behavior. I think it's because in my testcase I didn't position the windows, so after dragging them around a little, I reordered them so the one I expected to focus actually did.

I've filed this as a bug, and will let you know as soon as I hear anything.

Take care,

Antun

gordyt
03-06-2005, 05:26 PM
Hi Antun,

I know this is a fairly old thread but I just wanted to note that this problem still exists in 3.0b1. I understand that 3.0b2 will be available very soon and I'm hoping this will be fixed in that build.

Thanks,

--gordy