[SOLVED] Window foreground but not foreground?
-
- Addict
- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
[SOLVED] Window foreground but not foreground?
Anybody know if/how a Window could be made to be in foreground on top of window that is actually the foreground? Not looking for transparency. Just want to make one app window overlay on top of the app window that is truly operating as the foreground window without it taking focus away from that foreground window. Hope that makes sense.
Last edited by Randy Walker on Sat Jun 14, 2025 3:07 am, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Window foreground but not foreground?
Your app's own windows? It's the StickyWindow() command.
-
- Addict
- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Window foreground but not foreground?
WOW!! Fast reply. But these are two separate PB apps. Is that still possible?
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Window foreground but not foreground?
For Windows:
hWnd = Handle of the external window, obtained with things like FindWindow_() or GetForegroundWindow_().
Code: Select all
SetWindowPos_(hWnd,#HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)
-
- Addict
- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Window foreground but not foreground?
Yes it looks like it should do the trick. Will mark this [Solved] if it does work out for me.Randy Walker wrote: Fri Jun 13, 2025 8:46 amWOW!! Fast reply. But these are two separate PB apps. Is that still possible?
BIG THANKS!!! BarryG
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
-
- Addict
- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Window foreground but not foreground?
Yes both apps are my own PB apps/windows.
StickyWindow() was the perfect solution.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
-
- Addict
- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Window foreground but not foreground?
Not applicable in my case but it's a good post. Thanks, anyway. You always go above and beyond.BarryG wrote: Fri Jun 13, 2025 8:50 am For Windows:
hWnd = Handle of the external window, obtained with things like FindWindow_() or GetForegroundWindow_().Code: Select all
SetWindowPos_(hWnd,#HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.