Knowledge Base Search for: KB10354 - Calling TGIS_ControlLegendForm from the code. Use the following code: function TGIS_ControlLegendForm.Execute( const _layer : TGIS_LayerAbstract ) : Integer ; Created: November 21, 2003, Modified: August 03, 2015