| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, everyone. I have a problem to create a tool to read file path dragged on my form! I receive a WinDragDropSession object from drag/drop event after create WinDragDropObject object after obtain a IDataObject object. If I try to see available formats from WinDragDropObject I cant see 'CF_HDROP' only Set('FileName' 'DragContext' 'InShellDragLoop' 'Shell IDList Array' 'Shell Object Offsets' 'DragImageBits' 'FileNameW' ) whose contain a OLE interface. Can you help me to solve my problem? A lot of thanks for your attention to my problem |
|
#2
| |||
| |||
| It seems this question concerns Digitalk Release 3.1. Any takers? vsedletskiy@gmail.com wrote: > Hi, everyone. > > I have a problem to create a tool to read file path dragged on my > form! > I receive a WinDragDropSession object from drag/drop event after > create WinDragDropObject object after obtain a IDataObject object. > If I try to see available formats from WinDragDropObject I cant see > 'CF_HDROP' only Set('FileName' 'DragContext' 'InShellDragLoop' 'Shell > IDList Array' 'Shell Object Offsets' 'DragImageBits' 'FileNameW' ) > whose contain a OLE interface. > > Can you help me to solve my problem? > > A lot of thanks for your attention to my problem |
|
#3
| |||
| |||
| Do you really need OLE based drag & drop? If not you could use the old wmDropFiles way. In preInitWindow register for drag and drop: ... (tp := self textPane) when: #dragDropped: send: #droppedFile ane: to: selfwithArgument: tp; acceptDragDropOldStyle; dragTarget: true. ... with Window method: acceptDragDropOldStyle self addExtendedStyle: WsExAcceptfiles "= 16". self isHandleOk ifTrue: [ |dll| dll := self classShellDLL open. dll dragAcceptFiles: self handle asParameter accept: true. dll close ] ifFalse: [ self whenValid: #acceptDragDropOldStyle ] - Thomas (looking for VSE developers ...) On 15 Aug., 15:38, vsedlets...@gmail.com wrote: > Hi, everyone. > > I have a problem to create a tool to read file path dragged on my > form! > I receive a WinDragDropSession object from drag/drop event after > create WinDragDropObject object after obtain a IDataObject object. > If I try to see available formats from WinDragDropObject I cant see > 'CF_HDROP' only *Set('FileName' 'DragContext' 'InShellDragLoop' 'Shell > IDList Array' 'Shell Object Offsets' 'DragImageBits' 'FileNameW' ) > whose contain a OLE interface. > > Can you help me to solve my problem? > > A lot of thanks for your attention to my problem |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.