Function Reference


GUICtrlCreateDummy

Creates a Dummy control for the GUI.

GUICtrlCreateDummy ( )

Return Value

Success: the identifier (controlID) of the new control.
Failure: 0.

Remarks

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().

Related

GUICtrlRead, GUICtrlSendToDummy, GUICtrlSetData, GUICtrlSetOnEvent

Example

#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

AltStyle によって変換されたページ (->オリジナル) /