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

有關dummy

[复制链接]
发表于 2009-10-9 17:03:42 | 显示全部楼层 |阅读模式
哪位前輩能解釋下控件Dummy是用來做什么的?有什么意義嗎?
发表于 2010-2-7 08:59:58 | 显示全部楼层
我也想知道
发表于 2010-2-7 09:40:49 | 显示全部楼层
#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
        Local $user, $button, $cancel, $msg

        GUICreate("GUICtrlCreateDummy", 250, 200, 100, 200)
        GUISetBkColor(0x00E0FFFF)  ; will change background color

        $user = GUICtrlCreateDummy()
        $button = GUICtrlCreateButton("event", 75, 170, 70, 20)
        $cancel = GUICtrlCreateButton("Cancel", 150, 170, 70, 20)
        Dim $Form1_AccelTable[1][2] = [["^a", $user]]
GUISetAccelerators($Form1_AccelTable)
        GUISetState()

        Do
                $msg = GUIGetMsg()
                
                Select
                        Case $msg = $button
                                GUICtrlSendToDummy($user)
                        Case $msg = $cancel
                                GUICtrlSendToDummy($user)
                        Case $msg = $user
                                ; special action before closing
                                ; ...
                                Exit
                EndSelect
        Until $msg = $GUI_EVENT_CLOSE
EndFunc   ;==>Example
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 13:28 , Processed in 0.071726 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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