找回密码
 加入
搜索
查看: 1806|回复: 1

如何让主界面能滚动?(让滚动条能用)

[复制链接]
发表于 2008-12-14 23:38:10 | 显示全部楼层 |阅读模式
主界面有控件 一页显示不完,如何能让主界面能滚动? AU3自己改样式的话 能有滚动条,但不能用啊
我记得以前有人发过,能滚动界面的代码,可惜找不到了


此无用窗口代码
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 313, 181, 381, 253, BitOR($WS_MINIMIZEBOX,$WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_VSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("Button1", 64, 48, 129, 33, 0)
$Group1 = GUICtrlCreateGroup("Group1", 48, 24, 321, 281)
$Button2 = GUICtrlCreateButton("Button2", 72, 104, 113, 33, 0)
$Button3 = GUICtrlCreateButton("Button3", 72, 152, 121, 49, 0)
$Button4 = GUICtrlCreateButton("Button4", 216, 56, 97, 33, 0)
$Button5 = GUICtrlCreateButton("Button5", 216, 104, 97, 49, 0)
$Button6 = GUICtrlCreateButton("Button6", 216, 168, 105, 49, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd

[ 本帖最后由 YGYL 于 2008-12-14 23:40 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2008-12-15 16:22:08 | 显示全部楼层
留个名,$WS_VSCROLL貌似没用。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 09:23 , Processed in 0.107105 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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