Re: How to make a window stay on top off all other windows

"valery_vi" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
This is easy task:

#include <GuiConstants.au3>
GuiCreate("My Debug MsgBox", 200, 300, @DesktopWidth - 220, 
@DesktopHeight - 340, -1, $WS_EX_TOPMOST)
GuiCtrlCreateLabel("Result of testing:", 10, 10, 180, 20)
$Result = GuiCtrlCreateEdit("", 10, 40, 180, 180)
$OK = GUICtrlCreateButton('OK', 50, 250, 100, 25)
GuiSetState()
While 1
    $Msg = GUIGetMsg()
  Select
   Case $Msg = $GUI_EVENT_CLOSE
    Exit
   Case $Msg = $OK
    GUICtrlSetData ($Result, "")
  EndSelect
WEnd

Enjoy,
Valery

--- In [email protected], "Gary Kuznitz" <docfxit@...> 
wrote:
>
> I would like an AutoIt window to stay on top off all other 
windows. I thought 
> this would do it but it isn't.
> 
> GuiCreate("Officers Election 2006", 1280, 323, 300, 20 , 
> BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_EX_TOPMOST))
> 
> I also tried this:
> GuiCreate("Officers Election 2006", 1280, 323, 300, 20 , 
$WS_EX_TOPMOST)
> 
> But that didn't work either.
> 
> Does anyone have any ideas on how I can get the window to stay on 
top?
> 
> Thank you,
> 
> Docfxit
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.