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

[GUI管理] 怎么做出GUI信息的回显效果。[已解决]

[复制链接]
发表于 2010-5-3 18:27:05 | 显示全部楼层 |阅读模式
本帖最后由 lsq726 于 2010-5-3 19:09 编辑



怎么能让程序往这个文本编辑的窗体上输入想要的内容?

=================================
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 413, 305, 302, 218)
$Edit1 = GUICtrlCreateEdit("", 48, 40, 145, 97)
GUICtrlSetData(-1, "Edit1")
$Button1 = GUICtrlCreateButton("Button1", 240, 40, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

                Case $Form2
                Case $Form2
                Case $Form2
                Case $Form2
                Case $Edit1
                Case $Button1
                                                  GUICtrlSetData($Edit1, "test")
        EndSwitch
WEnd

本帖子中包含更多资源

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

×

评分

参与人数 1金钱 +10 收起 理由
afan + 10 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

发表于 2010-5-3 18:42:55 | 显示全部楼层
不明白什么意思
发表于 2010-5-3 18:43:01 | 显示全部楼层
不明白什么意思
 楼主| 发表于 2010-5-3 18:48:49 | 显示全部楼层
用什么语句能往里面写数据。
 楼主| 发表于 2010-5-3 18:49:29 | 显示全部楼层

类似这样的效果

本帖子中包含更多资源

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

×
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-2 22:45 , Processed in 0.089581 second(s), 28 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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