找回密码
 加入
搜索
查看: 3637|回复: 4

[GUI管理] 那位达人能注释一下GUIConstantsEx常量的作用!【已解决】

[复制链接]
发表于 2011-11-8 22:19:40 | 显示全部楼层 |阅读模式
本帖最后由 gzh888666 于 2011-11-17 22:40 编辑
Global Const $GUI_RUNDEFMSG = 'GUI_RUNDEFMSG'

; State
Global Const $GUI_AVISTOP = 0
Global Const $GUI_AVISTART = 1
Global Const $GUI_AVICLOSE = 2

Global Const $GUI_CHECKED = 1
Global Const $GUI_INDETERMINATE = 2
Global Const $GUI_UNCHECKED = 4

Global Const $GUI_DROPACCEPTED = 8
Global Const $GUI_NODROPACCEPTED = 4096
Global Const $GUI_ACCEPTFILES = $GUI_DROPACCEPTED        ; to be suppressed

Global Const $GUI_SHOW = 16
Global Const $GUI_HIDE = 32
Global Const $GUI_ENABLE = 64
Global Const $GUI_DISABLE = 128

Global Const $GUI_FOCUS = 256
Global Const $GUI_NOFOCUS = 8192
Global Const $GUI_DEFBUTTON = 512

Global Const $GUI_EXPAND = 1024
Global Const $GUI_ONTOP = 2048


; Font
Global Const $GUI_FONTITALIC = 2
Global Const $GUI_FONTUNDER = 4
Global Const $GUI_FONTSTRIKE = 8


; Resizing
Global Const $GUI_DOCKAUTO = 0x0001
Global Const $GUI_DOCKLEFT = 0x0002
Global Const $GUI_DOCKRIGHT = 0x0004
Global Const $GUI_DOCKHCENTER = 0x0008
Global Const $GUI_DOCKTOP = 0x0020
Global Const $GUI_DOCKBOTTOM = 0x0040
Global Const $GUI_DOCKVCENTER = 0x0080
Global Const $GUI_DOCKWIDTH = 0x0100
Global Const $GUI_DOCKHEIGHT = 0x0200

Global Const $GUI_DOCKSIZE = 0x0300        ; width+height
Global Const $GUI_DOCKMENUBAR = 0x0220        ; top+height
Global Const $GUI_DOCKSTATEBAR = 0x0240        ; bottom+height
Global Const $GUI_DOCKALL = 0x0322        ; left+top+width+height
Global Const $GUI_DOCKBORDERS = 0x0066        ; left+top+right+bottom

; Graphic
Global Const $GUI_GR_CLOSE = 1
Global Const $GUI_GR_LINE = 2
Global Const $GUI_GR_BEZIER = 4
Global Const $GUI_GR_MOVE = 6
Global Const $GUI_GR_COLOR = 8
Global Const $GUI_GR_RECT = 10
Global Const $GUI_GR_ELLIPSE = 12
Global Const $GUI_GR_PIE = 14
Global Const $GUI_GR_DOT = 16
Global Const $GUI_GR_PIXEL = 18
Global Const $GUI_GR_HINT = 20
Global Const $GUI_GR_REFRESH = 22
Global Const $GUI_GR_PENSIZE = 24
Global Const $GUI_GR_NOBKCOLOR = -2

; Background color special flags
Global Const $GUI_BKCOLOR_DEFAULT = -1
Global Const $GUI_BKCOLOR_TRANSPARENT = -2
Global Const $GUI_BKCOLOR_LV_ALTERNATE = 0xFE000000

; Other
Global Const $GUI_WS_EX_PARENTDRAG = 0x00100000
发表于 2011-11-9 22:38:45 | 显示全部楼层
本帖最后由 xiehuahere 于 2011-11-9 22:51 编辑

SF。。。帮助文件里基本都有。
部分注释如下,自己顺便熟悉一下。
;参见帮助中 GUIRegisterMsg 函数参考部分
Global Const $GUI_RUNDEFMSG = 'GUI_RUNDEFMSG'  
; Basically it allows AutoIt to run its internal handler for a message once you have finished with it.
; If you do not want the internal handler to run, just Return 0.
; 其实对这个我也没能做到完全理解,求汉化版。。。


; State
; 参见帮助中 GUICtrlSetState 函数参考部分
Global Const $GUI_AVISTOP = 0 ; Avi 控件停止播放
Global Const $GUI_AVISTART = 1 ; Avi 控件开始播放
Global Const $GUI_AVICLOSE = 2 ; Avi 控件停止播放并释放资源.

Global Const $GUI_CHECKED = 1 ; 单选按框钮(Radio)或复选框按钮(Checkbox)将被选中
Global Const $GUI_INDETERMINATE = 2 ; 具有三态属性的复选框(Checkbox)将变成灰色(不可用)状态
Global Const $GUI_UNCHECKED = 4 ; 单选按框钮(Radio)或复选框按钮(Checkbox)将被取消选中

Global Const $GUI_DROPACCEPTED = 8  ; 控件可以接受拖放操作的放下操作: 从一个文件或者其它控件
Global Const $GUI_NODROPACCEPTED = 4096 ; 控件不能接受拖放操作的放下操作.
Global Const $GUI_ACCEPTFILES = $GUI_DROPACCEPTED        ; to be suppressed

Global Const $GUI_SHOW = 16
Global Const $GUI_HIDE = 32
Global Const $GUI_ENABLE = 64
Global Const $GUI_DISABLE = 128

Global Const $GUI_FOCUS = 256
Global Const $GUI_NOFOCUS = 8192
Global Const $GUI_DEFBUTTON = 512 ; 控件将会被设置为窗口的默认按钮. 参考关于 TreeviewItems 的备注

Global Const $GUI_EXPAND = 1024 ; TreeViewItem 将会展开它的子项目
Global Const $GUI_ONTOP = 2048


; Font
; 这个帮助里没看到,自由发挥了
Global Const $GUI_FONTITALIC = 2 ; 斜体
Global Const $GUI_FONTUNDER = 4 ; 下划线
Global Const $GUI_FONTSTRIKE = 8 ; 删除线(是这个叫法不?)


; Resizing
; 参见帮助中 GUICtrlSetResizing 函数参考部分,DOCK就是窗口停靠的意思,不难意会
Global Const $GUI_DOCKAUTO = 0x0001 ; 坐标随机
Global Const $GUI_DOCKLEFT = 0x0002
Global Const $GUI_DOCKRIGHT = 0x0004
Global Const $GUI_DOCKHCENTER = 0x0008
Global Const $GUI_DOCKTOP = 0x0020
Global Const $GUI_DOCKBOTTOM = 0x0040
Global Const $GUI_DOCKVCENTER = 0x0080
Global Const $GUI_DOCKWIDTH = 0x0100
Global Const $GUI_DOCKHEIGHT = 0x0200

Global Const $GUI_DOCKSIZE = 0x0300        ; width+height
Global Const $GUI_DOCKMENUBAR = 0x0220        ; top+height
Global Const $GUI_DOCKSTATEBAR = 0x0240        ; bottom+height
Global Const $GUI_DOCKALL = 0x0322        ; left+top+width+height
Global Const $GUI_DOCKBORDERS = 0x0066        ; left+top+right+bottom

; Graphic
; 参见帮助中 GUICtrlSetGraphic 函数参考部分
Global Const $GUI_GR_CLOSE = 1
Global Const $GUI_GR_LINE = 2
Global Const $GUI_GR_BEZIER = 4
Global Const $GUI_GR_MOVE = 6
Global Const $GUI_GR_COLOR = 8
Global Const $GUI_GR_RECT = 10
Global Const $GUI_GR_ELLIPSE = 12
Global Const $GUI_GR_PIE = 14
Global Const $GUI_GR_DOT = 16
Global Const $GUI_GR_PIXEL = 18
Global Const $GUI_GR_HINT = 20
Global Const $GUI_GR_REFRESH = 22
Global Const $GUI_GR_PENSIZE = 24
Global Const $GUI_GR_NOBKCOLOR = -2

; Background color special flags
; 参见帮助中 GUICtrlSetBkColor 函数参考部分
Global Const $GUI_BKCOLOR_DEFAULT = -1
Global Const $GUI_BKCOLOR_TRANSPARENT = -2 ; 透明背景色,可用于Label, Group, Radio, Checkbox这些控件
Global Const $GUI_BKCOLOR_LV_ALTERNATE = 0xFE000000 ; LV - ListView,即赋予ListView控件隔行交替的背景色
; 奇数行颜色即为用 GUICtrlSetBkColor 给 Listview 控件设置的颜色.
; 偶数行颜色即为用 GUICtrlSetBkColor 给 ListviewItem 设置的颜色.
; 试一下看看效果吧。

; Other
Global Const $GUI_WS_EX_PARENTDRAG = 0x00100000 ; 允许拖动标签(label)或者图片(Pic)控件时即拖动整个父窗口.

评分

参与人数 2金钱 +130 贡献 +20 收起 理由
gzh888666 + 80 + 20 感谢提供
水木子 + 50 太有心了,向你学习!

查看全部评分

发表于 2011-11-10 00:54:29 | 显示全部楼层
回贴是美德   顺便赚个10块钱   没钱下载东西了
 楼主| 发表于 2011-11-10 20:48:56 | 显示全部楼层
再看看那个达人能补充一下!大部分已经OK了!再等等看!
发表于 2011-11-11 19:33:24 | 显示全部楼层
必须收藏, 还从来没学到这么系统的相关知识!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-6 03:00 , Processed in 0.098299 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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