|
本帖最后由 tmplinshi 于 2015-11-26 00:15 编辑
- xc.XInitXCGUI()
- m_hWindow := xc.XWnd_Create(0, 0, 300, 200, "炫彩界面库窗口")
- hEle := xc.XEle_Create(20, 50, 100, 100, m_hWindow)
- xc.XEle_RegEventC(hEle, XE_DROPFILES := 250, "Ele.OnDropFiles")
- xc.XWnd_ShowWindow(m_hWindow)
- xc.XRunXCGUI()
- xc.XExitXCGUI()
- Return
- class Ele {
- OnDropFiles() {
- MsgBox, 拖拽事件
- }
- }
复制代码
拖拽文件到元素上不会触发事件函数。代码是没有问题的,注册其他的事件能正常运行。
不知道是不是我漏掉了什么。 |
|