Bring window to front (solution)
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Jun 28, 2001
- 531 views
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