Creates a Group control for the GUI.
GUICtrlCreateGroup ( "text", left, top [, width [, height [, style [, exStyle]]]] )
| text | The text of the control. |
| left | The left side of the control. If -1 is used then left will be computed according to GUICoordMode. |
| top | The top of the control. If -1 is used then top will be computed according to GUICoordMode. |
| width | [optional] The width of the control (default is the previously used width). |
| height | [optional] The height of the control (default is the previously used height). |
| style | [optional] Defines the style of the control. See GUI Control Styles Appendix. default ( -1) : none. forced styles : $WS_GROUP, $BS_GROUPBOX. |
| exStyle | [optional] Defines the extended style of the control. See Extended Style Table. |
| Success: | Returns the identifier (controlID) of the new control. |
| Failure: | Returns 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate("My GUI group") ; will create a dialog box that when displayed is centered
GUICtrlCreateGroup("Group 1", 190, 60, 90, 140)
GUICtrlCreateRadio("Radio 1", 210, 90, 50, 20)
GUICtrlCreateRadio("Radio 2", 210, 110, 60, 50)
GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group
GUISetState() ; will display an empty dialog box
; Run the GUI until the dialog is closed
While 1
Local $msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example