[Q] SimpleGraph - Different background colour...

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

[Q] SimpleGraph - Different background colour...

Postby TheEdge » July 3rd, 2006, 11:04 am


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

Active Member
Active Member
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Postby Kambiz » July 3rd, 2006, 4:49 pm

You can use OnAfterDraw event to color the excluded area with a different color.
User avatar
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest