Bring window to front (solution)

new topic     » topic index » view thread      » older message » newer message

Hi,
I asked about this a little while ago and I seem to remember someone
else asking as well... Anyway, here's how to bring a window to the
front that works in later versions of windows (window is the win32lib
window id):

sequence rect
rect = getRect(window)
if
w32Func(xSetWindowPos,{getHandle(window),HWND_TOPMOST,rect[1],rect[2],rect[3]-rect[1],rect[4]-rect[2],0})
then end if
if
w32Func(xSetWindowPos,{getHandle(window),HWND_NOTOPMOST,rect[1],rect[2],rect[3]-rect[1],rect[4]-rect[2],0})
then end if
        
Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu