本帖最后由 yhjfirst 于 2015-1-19 18:24 编辑 #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $n = 99, $Checkbox[$n]
$Form1 = GUICreate("Form1", 610, 445, 192, 124)
$StatusBar1 = _GUICtrlStatusBar_Create($Form1)
_GUICtrlStatusBar_SetMinHeight($StatusBar1, 17)
GUICtrlCreateGroup("", 8, 8, 593, 369,$WS_VSCROLL)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Radio1 = GUICtrlCreateRadio("Radio1", 24, 0, 73, 25)
$Radio2 = GUICtrlCreateRadio("Radio2", 104, 0, 65, 25)
$Button1 = GUICtrlCreateButton("Button1", 480, 384, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
For $i = 0 To 20
If $i = 0 Then
$GAO = 20
Else
$GAO = 20 + (32 * $i)
EndIf
$Checkbox[$i] = GUICtrlCreateCheckbox($GAO, 15, $GAO, 57, 25)
Next
EndSwitch
WEnd
加$WS_VSCROLL后滚动条是有了,但是在GUICtrlCreateGroup外面,如何能在里面。实现checkbook多后出现下拉滚动条
|