|
楼主 |
发表于 2009-4-1 12:06:33
|
显示全部楼层
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 192, 114)
$Bu = GUICtrlCreateButton(" 01>>用户名密码", 5, 5, 120, 30, $BS_LEFT)
Global $Apex = 50 ;按钮 Y 轴初始坐标
$Total = IniReadSection("配置.ini", "软件分类");读分类
For $i = 1 To $Total[0][0];循环以创立按钮
$Buaa[$i] = GUICtrlCreateButton("文本", 10, $Apex + 60 * $i, 150, 60);循环创建按钮
Next
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Bu
EndSwitch
WEnd
提示: WARNING: $Buaa possibly not declared/created yet
$Buaa[$i] = GUICtrlCreateButton("文本", 10, $Apex + 60 * $i, 150, 60);循环创建按钮 |
|