User (Legacy) Posted October 31, 2002 Report Posted October 31, 2002 I want to change only the background of the plot area of a line (x,y) chart. I use the pre-paint event which gives me access to the height, width and left/right/top/bottom gaps. However, subtracting these still wont give the right area, I suspect one must also make an allowance for fonts. Does anyone know how to exactly calculate the size of the plot area? Thanks for your help. Henk Borsje
Software FX Posted October 31, 2002 Report Posted October 31, 2002 The PrePaint event passes you the Width and Height of the chart area as parameters (w and h). You can use LeftGap, TopGap, etc. to exclude the margins. Do not use ChartControl.Width and ChartControl.Height as this include borders, toolbar, legends and everything else. -- FP Software FX, Inc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.