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



RectFrame


Unit: SDL_rchart
Class: TRChart
Declaration: [1] procedure RectFrame (x1,y1, x2, y2: double; FrameStyle: TFrameStyle; ShadowColor, HiLightColor: TColor);
[2] procedure RectFrame (x1,y1, x2, y2: integer; FrameStyle: TFrameStyle; ShadowColor, HiLightColor: TColor);
[3] procedure RectFrame (x1,y1: integer; x2, y2: double; FrameStyle: TFrameStyle; ShadowColor, HiLightColor: TColor);
[4] procedure RectFrame (x1,y1: double; x2, y2: integer; FrameStyle: TFrameStyle; ShadowColor, HiLightColor: TColor);

The method RectFrame displays a framed rectangle. The lower left corner and the upper right corner are specified by the positions (x1, y1 ) and (x2, y2 ), respectively. The frame may assume one of four styles (parameter FrameStyle ): fsLowered, fsRaised, fsEmbossed, fsEngraved

The frame can be drawn in different coordinate system modes: version [1] uses the world coordinates (these are the coordinates shown at the axes of the chart), version [2] uses the screen coordinates (pixels), and versions [3] and [4] mix them. Using screen coordinates (which are declared as integer) has the effect that the rectangle remains at a fixed position even if the chart is panned or zoomed. Using mixed mode coordinates ([3] and [4]) allows to implement a "stretching" effect, with one corner of the rectangle staying in place and the other moving with the world coordinate system.

The colors of the boundary are determined by the parameters ShadowColor, and HiLightColor, the color of the inner area is determined by the property FillColor. The line width of the boundary is always 1 pixel.

Hint: In the Light Edition the number of chart elements is restricted to 1000 elements.



Last Update: 2023-Dec-13