找回密码
 加入
搜索
查看: 2034|回复: 2

[系统综合] 列表框鼠标点无作用

[复制链接]
发表于 2011-6-25 15:18:51 | 显示全部楼层 |阅读模式
程序中用到图片控件和列表框,运行后发现鼠标点击列表框,不会出现下拉选项!
但把图片控件$Pic1 = GUICtrlCreatePic(@HomeDrive&"\8.jpg", -16, 0, 817, 449)删除或禁用后就列表框不会出现这现像,如何解决呀!请高手们帮忙啊

我的代码如下:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


#Region ### START Koda GUI section ### Form=c:\users\mgj\desktop\form1 - 副本.kxf
$Form1_1 = GUICreate("Form1", 802, 450, 215, 173)
FileInstall(@ScriptDir & "\8.jpg", @HomeDrive&"\8.jpg")
$Pic1 = GUICtrlCreatePic(@HomeDrive&"\8.jpg", -16, 0, 817, 449)
$Input1 = GUICtrlCreateInput("012345678", 8, 232, 177, 45, BitOR($GUI_SS_DEFAULT_INPUT,$WS_BORDER))
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
$Input2 = GUICtrlCreateInput("012345678", 312, 232, 177, 45, BitOR($GUI_SS_DEFAULT_INPUT,$WS_BORDER))
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
$Input3 = GUICtrlCreateInput("012345678", 616, 232, 177, 45, BitOR($GUI_SS_DEFAULT_INPUT,$WS_BORDER))
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("清空", 8, 8, 75, 25)
GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
$Button2 = GUICtrlCreateButton("01234567890123456", 208, 16, 361, 65)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
$Combo1 = GUICtrlCreateCombo("", 190, 232, 121, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "①扣除|①加上|①乘以|①除以", "①扣除") ; 在列表框中添加新的项目,并设置一个新的默认值
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
$Combo2 = GUICtrlCreateCombo("", 494, 232, 121, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "②扣除|②加上|②乘以|②除以", "②乘以") ; 在列表框中添加新的项目,并设置一个新的默认值
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        EndSwitch
发表于 2011-6-25 21:36:34 | 显示全部楼层
$WS_EX_TOPMOST
在PIC控件后面加个这个样式就可以了!
 楼主| 发表于 2011-6-26 12:49:30 | 显示全部楼层
谢谢提醒,问题解决了,呵呵
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 04:40 , Processed in 0.073710 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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