Creates a Dummy control for the GUI.
GUICtrlCreateDummy ( )
This control can receive messages through a GUICtrlSendToDummy() call. The control will "notify" as normal and the value sent with GUISendToDummy can be read with GUICtrlRead().
GUICtrlRead, GUICtrlSendToDummy, GUICtrlSetData, GUICtrlSetOnEvent
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate ("GUICtrlCreateDummy",250,200,100,200)
GUISetBkColor (0x00E0FFFF); will change background color
Local $idDmy_User= GUICtrlCreateDummy ()
Local $idButton_Event= GUICtrlCreateButton ("event",75,170,70,20)
Local $idButton_Cancel= GUICtrlCreateButton ("Cancel",150,170,70,20)
GUISetState (@SW_SHOW )
Local $idMsg
; Loop until the user exits.
Do
$idMsg= GUIGetMsg ()
Select
Case $idMsg= $idButton_Event
GUICtrlSendToDummy ($idDmy_User)
Case $idMsg= $idButton_Cancel
GUICtrlSendToDummy ($idDmy_User)
Case $idMsg= $idDmy_User
; special action before closing
; ...
Exit
EndSelect
Until $idMsg= $GUI_EVENT_CLOSE
EndFunc ;==>Example