Knowledge Base Article
KB10294 - How can I persistently select a shape on the monitor?
A shape appearing on the monitor can be selected by simply using:
shp := myshap.MakeEditable;
shp.IsSelected := True;
shp.Invalidate ;
A non standard style for selection can be prepared as:
layer.ParamsList.Add ;
layer.Params.Style := 'selected' ;
layer.Params.Area.OutlineWidth := 1 ;
layer.Params.Area.Color := clBlue ;
Or via an .ini file as:
[TatukGIS Layer 1]
Style=selected
Area.OutlineWidth := 1 ;
Area.Color := clBlue ;
There is a sample showing this functionality in the Samples Set #3 called
"Multiselect".
Created: 2003-11-21, Modified: 2005-09-14
|