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);
  begin
    if MyLayer.ZOrder <> 0 then begin
      MyLayer.Zorder := 0 ;
      Legend.Update ;
    end ;
  end;

Created: October 02, 2007, Modified: December 29, 2015