Q&A - Question

Setting the brush on selected objects

Question
BerF asked on August 26, 2020, keyword: Developer Kernel
Is there a straight forward way to update the area of selected items?

I can see that you can choose colours, width, transparency and outline only but I can't figure out how to set a pattern for the area of the selected shapes.

 
Answers
Michal Kowalczuk replied August 26, 2020
No, you can't do more than changing Color, Outline, Transparency, and Width using GIS viewer properties.
If you want apply custom brush on selected objects, I reccomend the following steps:
  • create in-memory layer,
  • hide it from legend,
  • set params, brush, etc.,
  • copy selected shapes from source layer,
  • update the layer after each selection change.
Michal Kowalczuk replied August 26, 2020
Otherwise, if you want to change the selected shape, make current shape editable and then change it's params. MakeEditable method makes an in-memory copy of a shape, so you can apply an individual params for it.
shp.MakeEditable.Params.Area.Color = TGIS_Color.Red 
If you would like to answer the question please Sign In.
*
*
Please review our recent Privacy Policy.
If you have any questions or requests, please contact us.
Rules
The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers.
 
  1. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone.
  2. Keep the content positive and professional.
  3. Be courteous to others by posting information when a question or issue asked on the Q & A is answered or resolved by other means (such as with help from TatukGIS technical support). Offer others at least a hint how the posted question was answered or the issue was resolved.
  4. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.