Page 1 of 1

[Q] SimpleGraph - Different background colour...

PostPosted: July 3rd, 2006, 11:04 am
by TheEdge
G'Day,

- If I have a SG that is:

Color := clWhite;
Zoom := 100;
GraphConstraints.MaxHeight := 100;
GraphConstraints.MaxWidth := 100;

Then the entire SG is white. If I then set the Zoom to 50 is there any way to colour the SG a different colour *within* the drawing surface (say still white) and a different colour *outside* the drawing surface (say red)? ie A different colour outside the dashed line that indicates the drawing area?

TIA

PostPosted: July 3rd, 2006, 4:49 pm
by Kambiz
You can use OnAfterDraw event to color the excluded area with a different color.