Hi,
I am trying to implement a stroke feature similar to that in Demo1. However, I would like to stop drawing the stroke when the user double clicks.
I tried to track the LastInput.DoubleClick property in DoMouseDown. However, this always returns false.
This behavior is true for Demo1 also. In the Demo1 code, if one tries to track the LastInput.DoubleClick propertry, it always returns false.
public override void DoMouseDown() {
if (myStroke == null) {
// create a new stroke starting at the first mouse down point
myStroke = new GoStroke();
myStroke.AddPoint(this.FirstInput.DocPoint);
// the stroke is temporarily a view object
this.View.Layers.Default.Add(myStroke);
}
if(this.LastInput.DoubleClick)
{
//add stroke to document and return
}
myStroke.AddPoint(this.LastInput.DocPoint);
}
Can anyone please tell me what I am missing?
Thanks,
Rafique