Drag and drop lines


Hi, I have a graph generated from an array of data. I wish to drag and drop this graph to a user specified position with the mouse at run time. I will then want to have the option of saving it or keeping the original graph data.
I have basic vb6 knowledge and can only find drag and drop for databases and list and such. I am looking for something efficient.
My current thinking is to: use GetCursorPos&. I could do a check on whether the pixel is the colour of my line ( that would take care of the non array point problem) if the mouse spends let's say 4 secs in the same position. Then while the mouse button is pressed I could calculate the difference from the original mouse coordinate to the new one and add them to a temp array.

Seems cumbersome.
I have taken the data from an excel file. Would I be better off graphing from the original functions (4 of them)?
Any thoughts? Thanks

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options