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

组合框如何禁止输入?

[复制链接]
发表于 2009-12-24 00:45:04 | 显示全部楼层 |阅读模式
本帖最后由 doremi 于 2009-12-24 11:35 编辑

组合框只能下拉选择提供选项,不能自行输入。

评分

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

查看全部评分

发表于 2009-12-24 00:46:29 | 显示全部楼层
$CBS_DROPDOWNLIST
发表于 2009-12-24 09:05:06 | 显示全部楼层
楼上正解,我完善一下
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 24, 48, 145, 25,$CBS_DROPDOWNLIST)
GUICtrlSetData(-1,'11|22|33|','33')
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        EndSwitch
WEnd

评分

参与人数 1金钱 +15 贡献 +1 收起 理由
afan + 15 + 1

查看全部评分

 楼主| 发表于 2009-12-24 11:34:51 | 显示全部楼层
OK~感谢了~
发表于 2011-2-18 23:39:03 | 显示全部楼层
不错,谢谢了,收藏一下。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-10-2 14:32 , Processed in 0.091464 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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