Making a frame be on top of everything

I tried ShowFullScreen, and it had partial success: It’s not beating Rosetta Stone yet, but it is beating Ultramon’s auxiliary taskbars. (Not Windows’ real task bar, but at least the Ultramon one.)

But the problem is that my windows shouldn’t always be shown full-screen, and having them full-screen all the time makes the program unusable, so it’s not a viable solution :frowning:

···

On Tue, Sep 4, 2012 at 5:58 PM, Chris Barker chris.barker@noaa.gov wrote:

Rachum ram@rachum.com wrote:

It has 2 modes, window and full-screen. It’s always-on-top only when it’s full-screen. Does that shed any light?

Yes – you want full scree mode for your app too – something like ShowFullScreen()

-Chris

In any case, I’ll be happy to refocus the discussion on my question: How can I make my app be on top of all other apps?

Does anyone have a clue about this?

I hoped this discussion wouldn’t get philosophical, but if this issue

bothers you, let me explain.

Well, it’s not a matter of being “bothered”. It’s just that many people

get focused on one solution to a given problem, and end up focusing on

their one solution without considering that their overall problem might

better be solved in another way.

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

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I have done exactly what you want with AutoHotKey, but haven’t tried it with wxPython.

I don’t know if this is tyro knowledge or not, but my understanding is that Windows maintains two different z-orders. The regular z-order, and the ‘always-on-top’ z order. As might be expected the always-on-top z-order windows are displayed on top of all the regular z-order windows, but amongst the always-on-top z-order windows, the z-order is maintained separately and can be changed.

Consequently, I believe that the way to make your window stay on top of the always-on-top z-order windows would be to make it the top window. (I don’t have access to my programming computer to test this out right now).

If this doesn’t work, I’m sorry for the time you took to play with it and find out, but the advice was worth every penny you paid for it. On the other hand, if it does work, remember - you heard it here first.

Den

···

On Friday, August 31, 2012 1:42:38 PM UTC-7, Ram Rachum wrote:

Hi guys,

I want my frame to be always on top, but I want it to be really on top. I want no other windows to hide it, even if they are also “always on top”. I’m using wx.STAY_ON_TOP and wx.FRAME_FLOAT_ON_PARENT, but still there are windows that appear on top of mine. Also, the taskbar appears on top of my frame, while I’d like it to be behind my frame.

Any idea how to make my frame really on top?

Thanks,

Ram.

JJ: I tried the AutoHotKey snippet, it didn’t work, my app still doesn’t beat Rosetta Stone.

Den: What you say sounds promising, but I’ve tried making my window the top, using win32con.HWND_TOP and win32gui.BringWindowToTop, but to no avail, it still gets beaten by Rosetta Stone.

···

On Tue, Sep 4, 2012 at 10:01 PM, dncarac patentsvnc@gmail.com wrote:

On Friday, August 31, 2012 1:42:38 PM UTC-7, Ram Rachum wrote:

Hi guys,

I want my frame to be always on top, but I want it to be really on top. I want no other windows to hide it, even if they are also “always on top”. I’m using wx.STAY_ON_TOP and wx.FRAME_FLOAT_ON_PARENT, but still there are windows that appear on top of mine. Also, the taskbar appears on top of my frame, while I’d like it to be behind my frame.

Any idea how to make my frame really on top?

Thanks,

Ram.

I have done exactly what you want with AutoHotKey, but haven’t tried it with wxPython.

I don’t know if this is tyro knowledge or not, but my understanding is that Windows maintains two different z-orders. The regular z-order, and the ‘always-on-top’ z order. As might be expected the always-on-top z-order windows are displayed on top of all the regular z-order windows, but amongst the always-on-top z-order windows, the z-order is maintained separately and can be changed.

Consequently, I believe that the way to make your window stay on top of the always-on-top z-order windows would be to make it the top window. (I don’t have access to my programming computer to test this out right now).

If this doesn’t work, I’m sorry for the time you took to play with it and find out, but the advice was worth every penny you paid for it. On the other hand, if it does work, remember - you heard it here first.

Den

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I was thinking about that last night. I wonder if they’ve hooked the put-me-on-top message and put themselves back on top whenever some other window does the same.

···

On Wednesday, September 5, 2012 8:15:09 AM UTC-7, Ram Rachum wrote:

On Tue, Sep 4, 2012 at 10:01 PM, dncarac paten...@gmail.com wrote:

On Friday, August 31, 2012 1:42:38 PM UTC-7, Ram Rachum wrote:

Hi guys,

I want my frame to be always on top, but I want it to be really on top. I want no other windows to hide it, even if they are also “always on top”. I’m using wx.STAY_ON_TOP and wx.FRAME_FLOAT_ON_PARENT, but still there are windows that appear on top of mine. Also, the taskbar appears on top of my frame, while I’d like it to be behind my frame.

Any idea how to make my frame really on top?

Thanks,

Ram.

I have done exactly what you want with AutoHotKey, but haven’t tried it with wxPython.

I don’t know if this is tyro knowledge or not, but my understanding is that Windows maintains two different z-orders. The regular z-order, and the ‘always-on-top’ z order. As might be expected the always-on-top z-order windows are displayed on top of all the regular z-order windows, but amongst the always-on-top z-order windows, the z-order is maintained separately and can be changed.

Consequently, I believe that the way to make your window stay on top of the always-on-top z-order windows would be to make it the top window. (I don’t have access to my programming computer to test this out right now).

If this doesn’t work, I’m sorry for the time you took to play with it and find out, but the advice was worth every penny you paid for it. On the other hand, if it does work, remember - you heard it here first.

Den

To unsubscribe, send email to wxPython-user...@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

JJ: I tried the AutoHotKey snippet, it didn’t work, my app still doesn’t beat Rosetta Stone.

Den: What you say sounds promising, but I’ve tried making my window the top, using win32con.HWND_TOP and win32gui.BringWindowToTop, but to no avail, it still gets beaten by Rosetta Stone.

but to no avail, it still gets beaten by Rosetta Stone.

Does the order of operations matter? I.e., if you run Rosetta Stone and then start your app, vs. start your app and then run Rosetta Stone? In both cases RS dominates?

Yes, regardless of order of launching, Rosetta Stone wins.

···

On Sep 5, 2012 10:39 PM, “C M” cmpython@gmail.com wrote:

but to no avail, it still gets beaten by Rosetta Stone.

Does the order of operations matter? I.e., if you run Rosetta Stone and then start your app, vs. start your app and then run Rosetta Stone? In both cases RS dominates?

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en