Hi, first of all please check if you have handler for Map.ChooseLayer event anywhere in your code. In case you handle it, e.g.
Other than that I believe there is no other preconditions to have the SelectBoxFinal event fired as you've already set SendSelectBoxFinal to true. It is also fired by our demo app after I changed ChooseLayer handler like described above.
Hope it helps,
Sergei
private void MapChooseLayer(object sender, _DMapEvents_ChooseLayerEvent e)
{
e.layerHandle = legend.SelectedLayer; // or any other source of active layer
}
you won't have SelectBoxFinal event. To have the event in this case one needs:private void MapChooseLayer(object sender, _DMapEvents_ChooseLayerEvent e)
{
if (map.CursorMode != cmSelection) // exclude selection cursor
{
e.layerHandle = legend.SelectedLayer;
}
}
But generally if you just need to change Shapefile.ShapeSelected property, I'd recommend to use ChooseLayer event, it will select shapes just fine, i.e. do the job for you.Other than that I believe there is no other preconditions to have the SelectBoxFinal event fired as you've already set SendSelectBoxFinal to true. It is also fired by our demo app after I changed ChooseLayer handler like described above.
Hope it helps,
Sergei