|
楼主 |
发表于 2013-2-5 16:03:37
|
显示全部楼层
GUICreate("My GUI list")
$add = GUICtrlCreateButton("Add", 64, 32, 75, 25)
$clear = GUICtrlCreateButton("Clear", 64, 72, 75, 25)
$mylist = GUICtrlCreateList("buttons that have been clicked", 176, 32, 200, 200, 0x00100000)
GUICtrlSetLimit(-1, 300)
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case -3
Exit
Case $add
GUICtrlSetData($mylist, "You clicked button No1-You clicked button No1|")
Case $clear
GUICtrlSetData($mylist, "")
EndSwitch
WEnd |
|