DragDropServer.StartDrag 方法 |
命名空间: VO
1CLASS MyChildWindow INHERIT ChildAppWindow 2 HIDDEN aDragList AS ARRAY 3 4 METHOD Init(oOwner) CLASS MyChildAppWindow 5 SUPER:Init(oOwner) 6 EnableDragDropServer(TRUE) // 将窗口设置为DragDropServer 7 8 METHOD MouseDrag(oEvent) CLASS MyChildWindow 9 LOCAL ListLength AS INT 10 LOCAL lResult AS LOGIC 11 ListLength := ALen(aDragList) 12 // aDragList已经填充了文件名列表 13 IF ListLength > 0 // 如果有文件要拖动 14 lResult := SELF:DragDropServer:StartDrag(aDragList) 15 ENDIF