找回密码
 加入
搜索
查看: 2271|回复: 2

[GUI管理] 请教问题。如何让GUICtrlCreateGroup有下拉滚动菜单

[复制链接]
发表于 2015-1-19 00:28:37 | 显示全部楼层 |阅读模式
本帖最后由 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多后出现下拉滚动条
发表于 2015-2-3 16:14:21 | 显示全部楼层
GUICtrlCreateGroup
在GUI上创建一个分组(Group)控件

你怎么想要让分组控件有滚动条?
你上面的代码那个分组里是空的
发表于 2015-2-4 16:04:13 | 显示全部楼层
建个treeview似乎简单些
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-29 19:26 , Processed in 0.073604 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表