|
程序中用到图片控件和列表框,运行后发现鼠标点击列表框,不会出现下拉选项!
但把图片控件$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 |
|