readme.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. DragDropHandlerShellExt
  2. This application demonstrates how to create a drag drop handler shell extension
  3. using the TDragDropHandler component.
  4. Description of Drag Drop Handlers from MSDN:
  5. When a user right-clicks a shell object to drag an object, a context menu is
  6. displayed when the user attempts to drop the object. A drag-and-drop handler
  7. is a context menu handler that can add items to this context menu.
  8. To use this demo, compile the project and register the DLL.
  9. You can use one of the following methods to register the DLL:
  10. - From within the Delphi IDE, select "Register ActiveX Server" from the "Run"
  11. menu.
  12. - Use the regsvr32.exe tool provided by Microsoft.
  13. Execute the following command line:
  14. regsvr32 DragDropHandlerShellExt.dll
  15. - Use the tregsvr.exe tool provided by Borland.
  16. Execute the following command line:
  17. tregsvr DragDropHandlerShellExt.dll
  18. Once the DLL has been registered, drag a .txt file with the right mouse
  19. button and drop it somewhere. The normal drag/drop popup menu should appear with
  20. a custom "Encrypt" menu item added to it. If you select the "Encrypt" menu item,
  21. the dragged file will be copied to the destination and encrypted. The original
  22. file will not be modified. To unencrypt the dropped file again, just repeat the
  23. process.
  24. You can use one of the following methods to unregister the DLL once you are done
  25. with it:
  26. - From within the Delphi IDE, select "Unregister ActiveX Server" from the
  27. "Run" menu.
  28. - Use the regsvr32.exe tool provided by Microsoft.
  29. Execute the following command line:
  30. regsvr32 /u DragDropHandlerShellExt.dll
  31. - Use the tregsvr.exe tool provided by Borland.
  32. Execute the following command line:
  33. tregsvr -u DragDropHandlerShellExt.dll