Knowledge Base

KB10773 - Prevent changes to layer order in the legend control.

This can be done by overriding the TGIS_ControlLegend.OrderChange event. For example, in Delphi:

  procedure TForm1.LegendOrderChange(Sender: TObject);
    if MyLayer.ZOrder <> 0 then begin
      MyLayer.Zorder := 0 ;
      Legend.Update ;
    end ;

Created: October 02, 2007, Modified: December 29, 2015
follow us on Facebook  follow us on Twitter  follow us on Google +  follow us on LinkedIn  Embarcadero