#include <GUIConstantsEx.au3>
Local $add, $clear, $mylist, $close, $msg
Local $MESSAGE = "The following buttons have been clicked"
GUICreate("My GUI list") ; will create a dialog box that when displayed is centered
$mylist = GUICtrlCreateList("buttons that have been clicked", 10, 32, 350, 97)
GUICtrlSetLimit(-1, 200) ; to limit horizontal scrolling
GUICtrlSetData(-1, $MESSAGE)
Local $buttoncontext = GUICtrlCreateContextMenu($mylist)
GUICtrlCreateMenuItem("About button", $buttoncontext)
GUICtrlCreateMenuItem("About button1", $buttoncontext)
GUICtrlCreateMenuItem("About button2", $buttoncontext)
GUICtrlCreateMenuItem("About button3", $buttoncontext)
GUISetState()
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
$msg = GUIGetMsg()
WEnd
|