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....



MarkItemsInWindow


Unit:SDL_rchart
Class: TRChart
Declaration: function MarkItemsInWindow (xLo, YLo, XHi, YHi: double; ItemID: TrcItem; ClassNumber: byte): longint;

The method MarkItemsInWindow searches for all entries in the data container which fulfill the following requirements: the item must be of the type ItemID, and the item has to be located within a window which is defined by the parameters xLo...YHi. If an item meets the requirements, its class number is set to the value ClassNumber. The boundaries of the restricting window (xLo, yLo, xHi, yHi ) are specified as real-world coordinates. The function returns the number of items which have been marked by a new class number.

Hint: The parameter ClassNumber must not be set to 255 (in this case the function MarkItemsInWindow has no effect at all).

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): rchdrag



Last Update: 2012-Oct-20