找回密码
 加入
搜索
查看: 2337|回复: 3

GUICtrlCreateCombo 是否不能改成"不能输入"

[复制链接]
发表于 2008-7-26 01:35:39 | 显示全部楼层 |阅读模式
今天发现Combo选择框 都可以键盘输入...
这样可能会造成一些无法预期的错误


请问可以改成不能输入的吗?  (就是只能选)
3Q

[ 本帖最后由 tts 于 2008-7-26 12:20 编辑 ]
发表于 2008-7-26 01:53:02 | 显示全部楼层


#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
    Local $msg
    GUICreate("My GUI combo")  ; will create a dialog box that when displayed is centered

    GUICtrlCreateCombo("item1", 10, 10,150,20,0x0003) ; create first item
    GUICtrlSetData(-1, "item2|item3", "item3") ; add other item snd set a new default

    GUISetState()

    ; Run the GUI until the dialog is closed
    While 1
        $msg = GUIGetMsg()
        
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
EndFunc   ;==>Example
 楼主| 发表于 2008-7-26 12:19:51 | 显示全部楼层
感谢sanhen大
抱歉,查了发现我问了笨问题
试过很多样式..唯独漏了它...
发表于 2016-10-31 10:19:06 | 显示全部楼层
路过 顶起,学习学习
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-3-29 03:16 , Processed in 0.071025 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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