idesktop 10i 插件开发问题:
mapcontrol.Action = SuperMap.UI.Action.CreatePolyline;
mapcontrol.TrackMode = TrackMode.Track;
OrificesLine OL = new OrificesLine();
mapcontrol.Tracked += OL.Drawing;
mapcontrol.GeometryAdded += OL.Drawed;
我在Tracked的时候将跟踪层对象添加到了数据集里,但是好像没有绘制结束,光标也是十字不是箭头。怎么样能触发GeometryAdded事件呢
Drawing()里的代码:
Recordset rec = thisvector.GetRecordset(false, CursorType.Dynamic);
rec.AddNew(pGeoLine);
rec.Update();
rec.Refresh();
rec.Dispose();
rec.Close();
mapcontrol.Map.Refresh();
RemoveTrackGeo(mapcontrol.Map.TrackingLayer, DRAWREGIONTAG);//移除跟踪层对象