Drag n Drop from window to window

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
chartist
Posts: 8
Joined: Fri Jan 31, 2014 3:37 pm

Drag n Drop from window to window

Post by chartist » Sat Feb 01, 2014 4:17 pm

Is it possible to drag a surfacegridseries from one LC window
To another LC window? How?
Thanks

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Drag n Drop from window to window

Post by ArctionPasi » Mon Feb 03, 2014 11:12 am

It's not unfortunately a built-in feature. By using chart.DragDrop, chart.DragEnter and chart.MouseDown event handlers you can do the drag-drop logic. In MouseDown, you can call chart.View3D.SurfaceGridSeries3D[0].IsMouseOver method to check if mouse is over the series, or use SurfaceGridSeries.MouseDown event handler. In DragDrop event handler of target chart, create a new surface series which has similar data and appearance than the series being dragged. Don't try to use the same series object because it has references to GPU resources that are specific to chart instance.
LightningChart Support Team, PT

chartist
Posts: 8
Joined: Fri Jan 31, 2014 3:37 pm

Re: Drag n Drop from window to window

Post by chartist » Wed Feb 05, 2014 1:18 am

Thanks for the quick reply.

Post Reply