Author: Tomas Rutkauskas
Have a window stay on top all the time
Answer:
The following code results in a window that stays on top all the time, even when
the main application form is in the background:
1 Minitool := TMinitool.Create(Self);
2 Application.NormalizeTopMosts;
3 SetWindowPos(Minitool.Handle, HWND_TOPMOST, 0, 0, 0, 0,
4 SWP_NOACTIVATE + SWP_NOMOVE + SWP_NOSIZE);
5 Minitool.Show;