Вобщем сначла и не замечал а потом заметил что функция чтобы окно всегда было поверх остальных окон работает не правильно. то есть поверх остальных окон появляется только главное, а дочерние окна появляются в тени главного.
вобщем вот код, подскажите почему так происходит
вобщем вот код, подскажите почему так происходит
Код:
#include <GuiConstantsEx.au3>
#include <AVIConstants.au3>
#include <TreeViewConstants.au3>
GUICreate("PC10") ; will create a dialog box that when displayed is centered
$nButton1 = GUICtrlCreateButton('пример 1', 20, 50, 110, 30)
$nButton2 = GUICtrlCreateButton('пример 2', 20, 80, 110, 30)
$ontop = GUICtrlCreateCheckbox(" окно всегда наверху", 35, 310, 150, 20)
GUICtrlSetState(-1, $ontop)
GUISetState()
; Run the GUI until the dialog is closed
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
exit
Case $nButton1
MsgBox(64, 'Info', 'пример 1')
Case $nButton2
MsgBox(64, 'Info', 'пример 2')
Case $ontop
If BitAND(GUICtrlRead($ontop), $GUI_CHECKED) then
WinSetOnTop ( "[REGEXPTITLE:PC10.*]", "", 1 )
Else
WinSetOnTop ( "[REGEXPTITLE:PC10.*]", "", 0 )
EndIf
EndSwitch
Wend