Skip to content

hooverdirt/legacy-webbrowser-dragdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DISCLAIMER

This is demo code written in 2010 - THIS CODE WAS PUT HERE FOR REFERENCE ONLY. YOU SHOULD NOT HAVE TO USE THIS CODE. NOTE ALL CODE WAS WRITTEN BY MYSELF.

Introduction

Quick and dirty POC that allows one to drag and drop text into any HTML element in an IE-based web browser.

The Scene:

It's early 2010 - and the product's use of an external control (CSEXWB) is reportedly causing issues in the newly released Windows 7. We have a problem - but support has been holding the fort for now, but we need a fix - the sooner the better.

Another (brilliant) senior dev Scott discovers that the issue is in a COM control part of earlier mentioned control - and we don't have the sources to it/or we can't compile C++ code. Either way, so we spitball:

  1. Either find an alternative way thru possibly JS? Me: That would still require a control that accepts Drag & Drop events.
  2. Me: How about I check my extensive Delphi collection and see if I wrote something like this in the past in Delphi...

I didn't find a wrapper control but I dive into the Windows/IE API. A few days later, I pass the control back to Scott. To my absolute surprise, shock and horror, he implements it into the product within a day. He says 'it worked with a few changes' (most likely the highlighting part/drag over code as that required more knowledge of JS...). We regression test everything. All looks good and it's pushed to prod.

How to compile:

  1. Load in Visual Studio.
  2. Compile/Build
  3. Run!

About

Legacy IE drag and drop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages