|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....|
|Home ChartPack BoxPlot Events OnScalesRendered|
|See also: OnBeforeRenderData, OnBeforeBoxDraw, OnDataRendered, SetCanvasFontSizeScaled|
The events OnBeforeRenderData, OnDataRendered and OnScalesRendered provide hooks for adding user defined graphics to a boxplot. Internally, a boxplot is constructed in three phases before the result is copied to the screen: in the first phase the scales are drawn, then the data is drawn and finally the crosshairs are rendered. The OnScalesRendered event is triggered after the scales are drawn giving access to the non-data areas of TBoxPlot (i.e. the areas where the scales and captions are drawn). The events OnBeforeRenderData and OnDataRendered are triggered before and after drawing the chart.
The event OnScalesRendered occurs after the scales of the chart has been drawn and before the boxes are drawn. The variable parameter Canvas provides access to the canvas of the data area. Please note that the state of the canvas (e.g. the color of its pen, or the fill mode of the brush) depends on the graphics elements drawn before. The parameters Top and Left are always zero.