注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

chunwaihome 的博客

 
 
 

日志

 
 

GUI Reference  

2010-03-29 09:12:59|  分类: AutoIt |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Create a GUI window.

GUICreate ( "title" [, width [, height [, left [, top [, style [, exStyle [, parent]]]]]]] )

默认值为 -1,表示下列风格(style)的组合:$WS_MINIMIZEBOX、$WS_CAPTION、$WS_POPUP、$WS_SYSMENU。

#include <GUIConstants.au3>

GUICreate("我的 GUI")  ; 创建一个居中显示的窗口
GUISetState (@SW_SHOW)       ; 空的窗口

; 运行脚本直到窗口被关闭
While 1
    $msg = GUIGetMsg()
   
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend


GUIGetMsg ( [高级模式] )

Event IDs

0 No event
Control ID the ID of the control sending the message
$GUI_EVENT_CLOSE dialog box being closed (either by defined button or system menu).
$GUI_EVENT_MINIMIZE dialog box minimized with Windows title bar button.
$GUI_EVENT_RESTORE dialog box restored by click on task bar icon.
$GUI_EVENT_MAXIMIZE dialog box maximized with Windows title bar button.
$GUI_EVENT_MOUSEMOVE the mouse cursor has moved
$GUI_EVENT_PRIMARYDOWN the primary mouse button was pressed
$GUI_EVENT_PRIMARYUP the primary mouse button was released
$GUI_EVENT_SECONDARYDOWN the secondary mouse button was pressed
$GUI_EVENT_SECONDARYUP the secondary mouse button was released

 
GUICtrlCreateAvi


Creates a Button control for the GUI.
GUICtrlCreateButton ( "text", left, top [, width [, height [, style [, exStyle]]]] )

GUICtrlCreateCheckbox
GUICtrlCreateCombo
GUICtrlCreateContextM
GUICtrlCreateDate
GUICtrlCreateDummy
GUICtrlCreateEdit
GUICtrlCreateGroup
GUICtrlCreateIcon
GUICtrlCreateInput
Function GUICtrlCreateLabelGUICtrlCreateLabel


在GUI上创建一个静态的 Label 控件。

GUICtrlCreateLabel ( "文本", 左侧, 上方 [, 宽度 [, 高度 [, 样式 [, 扩展样式]]]] )


GUICtrlCreateList
GUICtrlCreateListView
GUICtrlCreateListView
GUICtrlCreateMenu
GUICtrlCreateMenuItem
GUICtrlCreatePic
GUICtrlCreateProgress
GUICtrlCreateRadio
GUICtrlCreateSlider
GUICtrlCreateTab
GUICtrlCreateTabItem
GUICtrlCreateTreeView
GUICtrlCreateTreeView
GUICtrlCreateUpdown

GUISetState


Changes the state of a GUI window.

GUISetState ( [flag [, winhandle]] )

 

Parameters



winhandle [optional] Windows handle as returned by GUICreate (default is the previously used window).

GUICtrlSetState

Changes the state of a control.

GUICtrlSetState ( controlID, state )


GUICtrlSetBkColor Function GUICtrlSetBkColor

设置指定控件的背景颜色。

GUICtrlSetBkColor ( 控件ID, 背景色 )

  评论这张
 
阅读(927)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017