找回密码
 加入
搜索
查看: 2446|回复: 5

[GUI管理] Au3中有实现下拉复选框功能的指令吗?

  [复制链接]
发表于 2015-12-14 20:09:19 | 显示全部楼层 |阅读模式
Au3中什么指令可以实现这种效果啊?试了用GUICtrlCreateCombo也不行,求指教!

本帖子中包含更多资源

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

×
发表于 2015-12-14 20:43:06 | 显示全部楼层
在指定位置创建一个弹窗,内建ListView控件
 楼主| 发表于 2015-12-14 23:09:40 | 显示全部楼层
可以举个例子吗?还是不太明白,我果然还是太笨了
发表于 2015-12-15 11:33:20 | 显示全部楼层
路过学习下。。。。。。。。。。。。。。
发表于 2015-12-18 12:48:36 | 显示全部楼层
你可以去参考一下
#include <GuiComboBoxEx.au3>
#include <GuiImageList.au3>
#include <GuiConstantsEx.au3>
 
Opt('MustDeclareVars', 1)
 
$Debug_CB = False ; Check ClassName being passed to ComboBox/ComboBoxEx functions, set to True and use a handle to another control to see it work
 
_Main()
 
Func _Main()
        Local $hGUI, $hImage, $image, $hCombo
        
        ; Create GUI
        $hGUI = GUICreate("ComboBoxEx Get/Set Item Image", 400, 300)
        $hCombo = _GUICtrlComboBoxEx_Create ($hGUI, "", 2, 2, 394, 100)
        GUISetState()
 
        $hImage = _GUIImageList_Create (16, 16, 5, 3)
        _GUIImageList_AddIcon ($hImage, @SystemDir & "\rasdlg.dll", 1)
        _GUIImageList_AddIcon ($hImage, @SystemDir & "\rasdlg.dll", 0)
        _GUICtrlComboBoxEx_SetImageList ($hCombo, $hImage)
 
        _GUICtrlComboBoxEx_BeginUpdate ($hCombo)
        For $x = 0 To 10
                $image = Random(0, 1, 1)
                _GUICtrlComboBoxEx_AddString ($hCombo, StringFormat("%03d : Random string", Random(1, 10, 1)), $image, $image)
        Next
        _GUICtrlComboBoxEx_EndUpdate ($hCombo)
        _GUICtrlComboBoxEx_SetItemImage ($hCombo, 1, 1)
        MsgBox(4160, "Information", "Item Image: " & _GUICtrlComboBoxEx_GetItemImage ($hCombo, 0))
 
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>_Main
 楼主| 发表于 2015-12-24 13:04:23 | 显示全部楼层
貌似样式相似,但复选框没法选择啊,尽管如此还是非常感谢5楼大大给予的帮助!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 00:53 , Processed in 0.086171 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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