The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



RemoveLastItem


Unit:SDL_rchart
Class: TRChart
Declaration: procedure RemoveLastItem;

The method RemoveLastItem deletes the last graphics element from the data container. This is equal to removing the last element from the drawing. Note that you have to call the method ShowGraf in order to see any effect.

Hint: RemoveLastItem can be used to move a graphics element across an existing drawing by repeatedly removing the last element and regenerating it at a different location.

Example: RCHMOVEL.DPR
  This example program shows how to utilize RemoveLastItem for moving an item of the chart.

Example: This method is used in the following example programs (see http://www.lohninger.com/examples.html for downloading the code): curvefit, objcur, rchmovel



Last Update: 2013-May-16