Select to view content in your preferred language

Dynamic circle

513
0
09-12-2010 11:17 PM
PascalCONRAD
New Contributor
Hi,

I want to have a dynamic circle under my cursor. This circle have is diameter who change with external parameter.

actually, I use :
if (oldDynamicPos != null)
            {
IEnvelope env = new EnvelopeClass();
                env.PutCoords(oldDynamicPos.X - 100, oldDynamicPos.Y - 100, oldDynamicPos.X + 100, oldDynamicPos.Y + 100);
                axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, env);
}

ISegmentCollection segColl = new PolygonClass();
segColl.SetCircle(ploc, 100);
axMapControl1.DrawShape(segColl as IGeometry);
oldDynamicPos = ploc;


in OnMouseMove event. But the display is not optimal. The circle desappear some time, an I don't know how to unfill the geometry.

Can I do it with other way ?

Thank's.
0 Kudos
0 Replies