Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting program to display always on top of other windows without having the focus?
#7
(05-19-2024, 03:24 PM)madscijr Wrote:
(05-17-2024, 11:27 PM)SMcNeill Wrote: https://qb64phoenix.com/qb64wiki/index.p...ost_Window
Fantastic!

Now once the program window is set to always be in the foreground, how would you change it back to a normal window? 

I tried modifying my programs so 
a window stays on top (HWND_TOPMOST) when the user presses the "a" key, 
and goes back to normal (HWND_NOTOPMOST) when they press "b", 
but it doesn't seem to be working...

But your programs are fine.
If you press key B the window is no longer in the foreground and with A it is in the front again.
All you have to do is click on it with the mouse to give the program focus again, and then press the corresponding keys.
And the second program should not be in the same place as the first.
The function brings the window to the foreground, but does not hold the focus.
Reply


Messages In This Thread
RE: setting program to display always on top of other windows without having the focus? - by Steffan-68 - 05-19-2024, 04:35 PM



Users browsing this thread: 3 Guest(s)