AnnAutoMenuEnable example for Delphi

//This example toggles the AnnAutoMenuEnable property.
 if (LEADAnn1.AnnAutoMenuEnable = True)then
   LEADAnn1.AnnAutoMenuEnable:= False
else
   LEADAnn1.AnnAutoMenuEnable:= True;