Hello, I am trying to change the z-ordering of controls in my GUI using GUICtrlSetState. How come this example don't work? (I want $LABEL1 to be above $LABEL2) #include <GUIConstantsEx.au3>
$GUI = GUICreate("Test", 800, 600)
GUISetState()
$LABEL1 = GUICtrlCreateLabel("under", 20, 20, 500, 300)
GUICtrlSetBkColor(-1, 0xFF0000)
$LABEL2 = GUICtrlCreateLabel("above", 40, 60, 500, 300)
GUICtrlSetBkColor(-1, 0x00FF00)
GUICtrlSetState($LABEL1, $GUI_ONTOP)
Do
Sleep(50)
Until GUIGetMsg() = -3