|
Dragging Point |
Posted by xavier on Jul-09-2014 01:39 |
|
I am new using Chartdirector and I am evaluating the product. I use VB
I have a XY chart with X and Y data. and I know all of you know how to drag a point in the chart and redraw the new chart but I do not have time to experiment.
I figure out the hotspot and have the mouse display the coordinate of the point when the mouse over the hotspot but how I get the coordinate of the point when I click in it and track it when I drag it.
I am not a expert programmer. all I need is a quick simple example code what shows the event that I need to use and what functions I need to use in each event.
Thank's
Xavier |
Re: Dragging Point |
Posted by xavier on Jul-09-2014 04:24 |
|
I figure it out how to drag point and get the correct coordinate.
now I need help the differentiate between the mouse down event that I use to initiate the dragging and a doubleclick event that I use to show a dialog box to enter the new coordinate manually.
when I double click the program goes throught the mouse down event before going into the doubleclick event
is there a simple way to skip the code in the mouse down event in case of a double click event.
thank's xavier |
Re: Dragging Point |
Posted by Peter Kwan on Jul-09-2014 05:04 |
|
Hi Xavier,
I understand in the mouse down event handler, your code initiate the dragging. If I were
you, I will simply write code to cancel the dragging in the doubleclick event handler.
Regards
Peter Kwan |
Re: Dragging Point |
Posted by xavier on Jul-09-2014 22:25 |
|
I figure everything out
thank you Peter |
|