找回密码
 加入
搜索
查看: 2144|回复: 1

[GUI管理] 提示内容怎么清除[已解决]

[复制链接]
发表于 2011-6-8 14:03:05 | 显示全部楼层 |阅读模式
本帖最后由 清风飘飘 于 2011-6-14 15:26 编辑
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("客户数据库", 290, 183, 525, 383)
$Label1 = GUICtrlCreateLabel("用户名:", 32, 48, 52, 17)
$Label2 = GUICtrlCreateLabel("密  码:", 32, 88, 52, 17)
$Input1 = GUICtrlCreateInput("输入你的用户名", 88, 48, 121, 21)
$Input2 = GUICtrlCreateInput("输入你的密码", 88, 88, 121, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

                Case $Input1
        EndSwitch
WEnd
上面的那个输入框会变成绿色,但如果单击了鼠标就不再会变成选中了,下面那个也是,我想请教一下那位高人能不能让这两个输入框内的提示变成灰色,然后点击插入时候会自动清空这个提示,谢谢!
发表于 2011-6-8 17:59:23 | 显示全部楼层
Case $Input1
   GUICtrlsetdata($Input1, "")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-2 06:30 , Processed in 0.081219 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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