回复 chzj589
直接用但是按钮多的话是不是会更好?
blue_dvd 发表于 2016-12-13 11:34
按钮多可以用数组
Global $Button[7]
$Form1_1 = GUICreate("测试系统", 800, 600, -1, -1)
$Button[1] = GUICtrlCreateButton("模块1", 10, 464, 80, 41)
$Button[2] = GUICtrlCreateButton("模块2", 110, 464, 80, 41)
$Button[3] = GUICtrlCreateButton("模块3", 210, 464, 80, 41)
$Button[4] = GUICtrlCreateButton("模块4", 310, 464, 80, 41)
$Button[5] = GUICtrlCreateButton("模块5", 410, 464, 80, 41)
$Button[6] = GUICtrlCreateButton("模块6", 510, 464, 80, 41)
GUISetState(@SW_SHOW)
For $i = 1 To 6
GUICtrlSetOnEvent($Button[$i], "_Main")
Next
|