lele9013 发表于 2008-8-14 01:35:15

GUICtrlCreateEdit 即时处理的问题

#include <GUIConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
GUICreate(" My GUI input acceptfile", 364, 200, @DesktopWidth / 2, @DesktopHeight / 2, -1, $WS_EX_ACCEPTFILES); WS_EX_ACCEPTFILES


$Edit1 = GUICtrlCreateEdit("", 16, 16, 249, 160, 0)
    GUICtrlSetState(-1, $GUI_DROPACCEPTED)
        GUICtrlSetData(-1, "Edit1")

       
$Button1 = GUICtrlCreateButton("确定(&O)", 286, 11, 75, 25, 0)
$Button2 = GUICtrlCreateButton("取消(&C)", 285, 44, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Edit1
                        MsgBox(0,"","")       

        EndSwitch
WEnd
这个是 把任何文件 和文件夹拖放到Edit里面

能不能 马上Case $Edit1 作出反应啊 貌似好像不行

[ 本帖最后由 lele9013 于 2008-8-14 02:09 编辑 ]

lele9013 发表于 2008-11-26 10:31:32

同问!!!!!!!!

liongodmien 发表于 2008-11-26 10:42:55

用条件语句,比较EDIT里的内容是否发生改变!
页: [1]
查看完整版本: GUICtrlCreateEdit 即时处理的问题