We all know how to make a window stay on top of others, but I want a window to always stay
underneath a third-party one. So if Notepad was open, I want my window to open underneath it but offset a bit, so I can see my window behind it, but it'll still be mainly hidden by Notepad. Also, if my window is clicked, it should remain under Notepad as well. Anyone know if this can be done?
This is my goal:
Code: Select all
np=FindWindow_(0,"Untitled - Notepad")
GetWindowRect_(np,win.RECT)
x=win\left
y=win\top
OpenWindow(1,x-50,y-50,300,100,"Always under Notepad",#PB_Window_SystemMenu)
; What goes here to keep it under Notepad?
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow