BTW. yes, a new App would be the topmost app, but for some reason (at least some time ago, not sure if this is still true) a Blitz app will be forced to stay ontop when you run it from the IDE. When you compile it to an Exe and run the Exe, it will act normally.
You can however manually set a window to be on top or behind other windows by using the user32.dll's function "SetWindowPos". you need to add it to the user32.decls file:
SetWindowPos%(hwnd%,zlevel%,x%,y%,cx%,cy%,wFlags%)
(Note: this is the Function that should be used, other functions like SetForegroundWindow etc sound tasty but don't work for some reason)
See also win32 constants for the required Parameters.
Eg:
show always ontop, no size or position changes:
showWindowPos(hwnd,-1,0,0,100,100,$40 or $203)
show always on bottom:
showWindowPos(hwnd,0,0,0,100,100,$40)
show normal (no forced z-position):
showWindowPos(hwnd,1,0,0,100,100,$40)
You can however manually set a window to be on top or behind other windows by using the user32.dll's function "SetWindowPos". you need to add it to the user32.decls file:
SetWindowPos%(hwnd%,zlevel%,x%,y%,cx%,cy%,wFlags%)
(Note: this is the Function that should be used, other functions like SetForegroundWindow etc sound tasty but don't work for some reason)
See also win32 constants for the required Parameters.
Eg:
show always ontop, no size or position changes:
showWindowPos(hwnd,-1,0,0,100,100,$40 or $203)
show always on bottom:
showWindowPos(hwnd,0,0,0,100,100,$40)
show normal (no forced z-position):
showWindowPos(hwnd,1,0,0,100,100,$40)