Restored from previous forum. Originally posted by cor.
Is there a way to make the active window allways on top of other windows?
Registered user of PB
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Window always on top?
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Yes!
Procedure FrontWindow(WindowID)
Pos.RECT : GetWindowRect_(WindowID,Pos)
SetWindowPos_(WindowID,#HWND_TOPMOST,Pos\left,Pos\top,WindowWidth(),WindowHeight(),0)
EndProcedure
Call this procedure with:
FrontWindow(WindowID())
after you open your window.
BTW if you go to Paul's resource site you will find a lot of snippets, also my templates for window manipulations... (this procedure is there as well...)
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Yes!
Procedure FrontWindow(WindowID)
Pos.RECT : GetWindowRect_(WindowID,Pos)
SetWindowPos_(WindowID,#HWND_TOPMOST,Pos\left,Pos\top,WindowWidth(),WindowHeight(),0)
EndProcedure
Call this procedure with:
FrontWindow(WindowID())
after you open your window.
BTW if you go to Paul's resource site you will find a lot of snippets, also my templates for window manipulations... (this procedure is there as well...)
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm