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

加图片做背景后按钮失效

[复制链接]
发表于 2008-7-27 10:07:11 | 显示全部楼层 |阅读模式
给背景加上图片后,原来的按钮点击它就没反应了,请问,这该怎么搞呢?



#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 618, 439, 194, 130)
$Pic1 = GUICtrlCreatePic("ag.bmp", 0, 0, 633, 449, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("Button1", 64, 128, 75, 25, 0)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
          Case $Button1
           Run(@WindowsDir &"\regedit.exe")

        EndSwitch
WEnd




[ 本帖最后由 botanycc 于 2008-7-27 10:29 编辑 ]

本帖子中包含更多资源

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

×
 楼主| 发表于 2008-7-27 10:28:47 | 显示全部楼层
哈哈,原来这么简单啊,谢谢了
发表于 2008-9-6 03:19:04 | 显示全部楼层
谢谢分享,之前也遇见过这情况,总算解决。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-11 13:03 , Processed in 0.073591 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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