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



DetectScale


Unit:SDL_rchart
Class: TContourPlot
Declaration: function DetectScale (CoordX, CoordY: integer): integer;

The function DetectScale checks whether the position [CoordX,CoordY] is within a visible scale. The position is specified in pixel coordinates of the plot canvas. The function returns a zero value if the specified position is not within any scale of an axis. A value of -1 indicates that the position is within the x-scale, a value of +1 indicates that the position is within the y-scale.

The function assumes that the scales are 50 pixels wide (vertical axes) and 40 pixels high (horizontal axes).

Hint: See TRChart.DetectScale for an example.



Last Update: 2023-Dec-13