Sit window on bottom

Just starting out? Need help? Post your questions and find answers here.
Rebe
User
User
Posts: 73
Joined: Sun Jul 25, 2004 5:45 am

Sit window on bottom

Post by Rebe »

I want the window to be under everything so it is never on top .
How would I do that with code ?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Sit window on bottom

Post by PB »

Add this after your window's creation, and your window will be "stuck" to the
Desktop, meaning that every other window will always cover it. Think of this
as an "always on bottom" setting for your window. ;)

Code: Select all

SetParent_(WindowID(),FindWindow_(0,"Program Manager"))
And for the record, here's how you set a window to be "always on top":

Code: Select all

SetWindowPos_(WindowID(),#HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)
Last edited by PB on Fri Mar 25, 2005 3:41 pm, edited 2 times in total.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Rebe
User
User
Posts: 73
Joined: Sun Jul 25, 2004 5:45 am

Post by Rebe »

Just what I needed .. thank you kind Sir .
Post Reply