Ram Rachum wrote:
I don't understand, why does Windows decide that the window
of the Flash upgrade dialog and Rosetta Stone will appear over
my program, CuteMouseGrid? Why does one appear on top of the
other, and not the other way around? Is it random? Is it
according to which window was created first?
As far as I know, it’s just the order of creation.
I don’t think so. I’ve pitted my program against Rosetta Stone, and Rosetta Stone always wins, regardless of which program is launched first.
It has to be decided according to something , and
then what I need to find out is whether I can change this
something to make my program favored.
I still don't think you're acknowledging the underlying
philosophical problem here. What happens when, next week, we get a
user that says “I absolutely need my topmost window to be on top of
CuteMouseGrid”?
I hoped this discussion wouldn’t get philosophical, but if this issue bothers you, let me explain.
Windows decides which window to show first according to something. You and I currently do not know what that something is. You suggested order creation, which makes sense, but is not true. Maybe it’s according to some other constant in the program.
As an example, maybe Windows compares the path of the executables, and whichever appears first in the dictionary gets the higher priority. (I’m not saying this is how Windows operates, it’s just an example.) Then in this case the answer to your philosophical question would be that whoever has the more first-in-the-dictionary path will win. The fabric of spacetime has remained intact.
Topmost windows are supposed to be transient, so long-term ordering
doesn’t matter. What is your window doing?
My window is a utility that helps the user click the mouse on any spot on the screen by displaying a grid on the screen, and choosing cells using the keyboard. Therefore I obviously want it to show on top of everything, so no letters will be hidden.
···
On Sat, Sep 1, 2012 at 1:27 AM, Tim Roberts timr@probo.com wrote:
-- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en