Q&A - Question GIS_CONTROLLEGEND - selected item index? (C++ Builder) Question Bahodir asked on December 16, 2019, keyword: Developer Kernel I need to the current selection of GIS_ControlLegend1. How can I get the selected item index? Answers Tomasz Kosinski (TatukGIS) replied December 16, 2019 Legend.GIS_Layer See: TGIS_ControlLegend.GIS_Layer property Used for example in Fields sample. Bahodir replied December 16, 2019 GIS_ControlLegend->GIS_Layer = lv ; only this row I was able to find. I need to know the mouse clicked item like in LIstBox. In TListBox component I can use, ItemIndex to get the selected item name, but how can I do this here? Tomasz Kosinski (TatukGIS) replied December 16, 2019 It is not so easy, because you can have layers, sublayers, renderings, etc. So it's not a simple list box. You can use LayerSelectEbent, LayerActiveChangeEvent to track item selection. If you would like to answer the question please Sign In. * * Stay signed in on this computer Please review our recent Privacy Policy.If you have any questions or requests, please contact us. Forgotten password Rules The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone. Keep the content positive and professional. 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. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.