Hi guys,
I'm trying to z-order an inputbox and a label, but they doesn't work as expected...
Look at this script:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ColorConstants.au3>
Local $left = 100, $top = 100
$hGui = GUICreate("", 400, 200, $left, $top)
GUICtrlCreateLabel("RED LABEL", 9, 9, 302, 102)
GUICtrlSetBkColor(-1, $COLOR_RED)
$hInput = GUICtrlCreateInput("WHITE INPUT", 10, 10, 300, 100)
GUICtrlSetState(-1, $GUI_ONTOP)
;GUICtrlSetStyle(-1, "", $WS_EX_TOPMOST)
GUISetState()
Sleep(2000)
MouseMove(10 + $left + 20, 10 + $top + 30)
While 1
If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
WEnd
"White input" is not showed until I MouseMove over it, although it has the OnTop attribute.
It has the same behaviour with TopMost property.
Is this a bug?